diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-19 13:17:41 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-19 13:17:41 -0500 |
commit | abe07500ebddda9130a095d042630b994aea6609 (patch) | |
tree | 0b894b7966e6ce6c31d0494a614c6a9b822f452a /pts-core/modules/system_monitor.php | |
parent | 26fdc1f0dda56177b83a0f84fb8ce2682fa36300 (diff) | |
download | phoronix-test-suite-upstream-abe07500ebddda9130a095d042630b994aea6609.tar.gz phoronix-test-suite-upstream-abe07500ebddda9130a095d042630b994aea6609.tar.xz phoronix-test-suite-upstream-abe07500ebddda9130a095d042630b994aea6609.zip |
pts-core: PTS_START_TIME -> PTS_INIT_TIME and add pts_elapsed_time() function to return
the time (in seconds) that the option or pts-core has been running
Diffstat (limited to 'pts-core/modules/system_monitor.php')
-rw-r--r-- | pts-core/modules/system_monitor.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pts-core/modules/system_monitor.php b/pts-core/modules/system_monitor.php index 020af06..157f337 100644 --- a/pts-core/modules/system_monitor.php +++ b/pts-core/modules/system_monitor.php @@ -150,7 +150,6 @@ class system_monitor extends pts_module_interface return; // Elapsed time - $time_diff = PTS_END_TIME - PTS_START_TIME; $device = array(); $type = array(); @@ -427,7 +426,7 @@ class system_monitor extends pts_module_interface { if(count($sub_array) > 0) { - $time_minutes = floor($time_diff / 60); + $time_minutes = floor(pts_time_elapsed() / 60); if($time_minutes == 0) $time_minutes = 1; @@ -472,8 +471,8 @@ class system_monitor extends pts_module_interface } } - if($time_diff > 10 && count($m_array) > 0) - $info_report .= "\n\nElapsed Time: " . pts_format_time_string($time_diff); + if(count($m_array) > 0) + $info_report .= "\n\nElapsed Time: " . pts_format_time_string(pts_time_elapsed()); // terminal output if(!empty($info_report)) |