patch for load on Solaris

2005-12-20
2012-12-12
  • rob shepherd
    rob shepherd
    2005-12-20

    --- phpsysinfo-2.5.1/includes/os/class.SunOS.inc.php    Wed Dec  7 05:09:39 2005
    +++ phpsysinfo-2.5.1-rgs001/includes/os/class.SunOS.inc.php     Tue Dec 20 22:29:01 2005
    @@ -74,7 +74,7 @@
         $load1 = $this->kstat('unix:0:system_misc:avenrun_1min');
         $load5 = $this->kstat('unix:0:system_misc:avenrun_5min');
         $load15 = $this->kstat('unix:0:system_misc:avenrun_15min');
    -    $results['avg'] = array($load1, $load5, $load15);
    +    $results['avg'] = array( round($load1/256, 2),  round($load5/256, 2), round($load15/256, 2) );
         return $results;
       }

     
    • Michael Cramer
      Michael Cramer
      2005-12-21

      thanks added to cvs, next time please as bug report