From 3db5208f3e73a0a87309ff8df57b6c4a3b2aadb2 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 30 Jan 2014 00:35:15 +0100 Subject: Got the amount of seconds in a day wrong ;) Thanks to Lothar Schmidt --- minimunin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minimunin b/minimunin index cca7edb..c9c0d10 100755 --- a/minimunin +++ b/minimunin @@ -70,7 +70,7 @@ swap) ;; uptime) boot=`get_sys kern.boottime`; boot=${boot#*sec =}; boot=${boot%%,*} - printf "uptime.value %d\n" $(( ( `/bin/date +%s` - boot ) / 84600 )) + printf "uptime.value %d\n" $(( ( `/bin/date +%s` - boot ) / 86400 )) ;; memory) pagesize=`get_sys vm.stats.vm.v_page_size` -- cgit v1.2.3