aboutsummaryrefslogtreecommitdiffstats
path: root/libs/system.php
diff options
context:
space:
mode:
authorshevabam <shevabam@gmail.com>2017-11-02 20:54:43 +0100
committershevabam <shevabam@gmail.com>2017-11-02 20:54:43 +0100
commit725787bcf7421143d6567e5b4f39ab5fd3fd8695 (patch)
tree350af5d92c101bd697b9bb0b165f172915a3742a /libs/system.php
parentf6dc27183987b65dc06c11dbfd21507da15f1ea7 (diff)
fix PHP 7.1 notices "non well formed numeric value" #52
Diffstat (limited to 'libs/system.php')
-rw-r--r--libs/system.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/system.php b/libs/system.php
index ee43722..b6341f6 100644
--- a/libs/system.php
+++ b/libs/system.php
@@ -35,7 +35,7 @@ if (!($totalSeconds = shell_exec('/usr/bin/cut -d. -f1 /proc/uptime')))
}
else
{
- $uptime = Misc::getHumanTime($totalSeconds);
+ $uptime = Misc::getHumanTime((int)$totalSeconds);
}
// Last boot