protected function formatUptime($uptime )
   {
     $days = floor($uptime / 24 / 60 / 60);
     $daysRemainder = $uptime - ($days * 24 * 60 * 60);
     $hours = floor($daysRemainder / 60 / 60);
     $hoursRemainder = $daysRemainder - ($hours * 60 * 60);
     $minutes = floor($hoursRemainder / 60);
     $minutesRemainder = $hoursRemainder - ($minutes * 60);
     $seconds = $minutesRemainder;

     $out = $uptime . ' seconds (';
     if ($days > 0) {
         $out .= $days . ' days, ';
     }
     if ($hours > 0) {
         $out .= $hours . ' hours, ';
     }
     if ($minutes > 0) {
         $out .= $minutes . ' minutes, ';
     }
     if ($seconds > 0) {
         $out .= $seconds . ' seconds';
     }

     return $out . ')';
   }