summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph_img.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-12-24 08:42:24 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-12-24 08:42:24 +0000
commit91ae291402558879346938651555e538abeed6c7 (patch)
tree2d580a1b1ed8d486991bcdbbb78d3514d5699997 /usr/local/www/status_rrd_graph_img.php
parent9df9867d68cd8bc0aae23c244142b93ca3c33437 (diff)
downloadpfsense-91ae291402558879346938651555e538abeed6c7.zip
pfsense-91ae291402558879346938651555e538abeed6c7.tar.gz
Restore humantime algorithm
Diffstat (limited to 'usr/local/www/status_rrd_graph_img.php')
-rw-r--r--usr/local/www/status_rrd_graph_img.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php
index af6441f..8322bbe 100644
--- a/usr/local/www/status_rrd_graph_img.php
+++ b/usr/local/www/status_rrd_graph_img.php
@@ -183,10 +183,10 @@ function humantime($timestamp){
for($j = 0; $difference >= $lengths[$j]; $j++) {
$difference /= $lengths[$j];
$difference = round($difference);
- if($difference != 1) {
- $periods[$j].= "s";
- $text = "$difference $periods[$j]";
- }
+ }
+ if($difference != 1) {
+ $periods[$j].= "s";
+ $text = "$difference $periods[$j]";
}
return $text;
}
OpenPOWER on IntegriCloud