Ticket #182 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Wrong ttl in control.php

Reported by: tomlove Assigned to: somebody
Priority: minor Milestone: 0.9.5
Component: eAccelerator Version: 0.9.5
Keywords: Cc:

Description

A bug is showing scripts as expired or with ttl sometime in 1969 in control.php.

The bug is in cache.c, around line 635 for me:

if (p->ttl < t) {

add_assoc_long(list, "ttl", (p->ttl -t)); // ttl

Should be:

if (p->ttl > t) {

add_assoc_long(list, "ttl", (p->ttl)); // ttl

Change History

10/06/06 19:43:47 changed by tomlove

Hmm thought I posted the correction, for people who can't read sideways...

if (p->ttl < t) {

add_assoc_long(list, "ttl", (p->ttl -t)); // ttl

Should be

if (p->ttl > t) {

add_assoc_long(list, "ttl", (p->ttl)); // ttl

10/11/06 13:33:32 changed by bart

  • status changed from new to closed.
  • resolution set to fixed.
  • component changed from Control panel to eAccelerator.

This has been fixed in 0.9.5