Changeset 1770

Show
Ignore:
Timestamp:
10/20/07 12:53:15 (14 months ago)
Author:
cfriesen
Message:

Round the age to the nearest minute

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/extlib/rss_dbcache.inc

    r1769 r1770  
    117117         
    118118          // Lets hope that the web server and sql server have their clocks in sync 
    119         $age = (time() - $dateRefreshed) / 60; 
     119        $age = round((time() - $dateRefreshed) / 60); 
    120120         
    121121                if (!$refreshInterval || ($refreshInterval <= 60)) { 
     
    123123            $refreshInterval = 60; //$this->MAX_AGE; 
    124124                } 
    125  
    126 //              print(time() . " " . $dateRefreshed . " " . $age . " " . $refreshInterval); 
    127125 
    128126        if ( $refreshInterval > $age ) {