Changeset 158

Show
Ignore:
Timestamp:
11/06/07 00:03:32 (14 months ago)
Author:
chris
Message:

fixed an eta bug, 18

Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r157 r158  
     11.10 
     2 
     3* Fixed a bug where queue items with an ETA over 24 but less than 48 
     4  hours long weren't showing the days in the ETA 
     5 
    161.9 
    27 
  • trunk/README

    r156 r158  
    1 HellaWorld v1.9-SVN 
     1HellaWorld v1.10-SVN 
    22--------------------- 
    33 
  • trunk/classes/HellaController.php

    r154 r158  
    543543                 *      $seconds is the number of seconds to format 
    544544                 */ 
    545                         $days = floor($seconds/86400); 
    546                         $seconds = $seconds - ($days*86400); 
    547  
    548                         $hours = floor($seconds/3600); 
    549                         $seconds = $seconds - ($hours*3600); 
    550  
    551                         $minutes = floor($seconds/60); 
    552                         $seconds = $seconds - ($minutes*60); 
     545                        $days = floor($seconds / 86400); 
     546                        $seconds -= ($days * 86400); 
     547 
     548                        $hours = floor($seconds / 3600); 
     549                        $seconds -= ($hours * 3600); 
     550 
     551                        $minutes = floor($seconds / 60); 
     552                        $seconds -= ($minutes * 60); 
    553553 
    554554                        $output = ''; 
    555555 
    556                         if ($days > 1) { 
     556                        if ($days > 0) { 
    557557                                $output = $days . 'd '; 
    558558                        } 
  • trunk/index.php

    r157 r158  
    8989                } 
    9090 
    91                 $hellaworldversion = "1.9-SVN"; 
     91                $hellaworldversion = "1.10-SVN"; 
    9292                if (!isset($config['iprange'])) { 
    9393                        $iprange = '192.168.0.0/16,10.0.0.0/8,172.168.0.0/12';