summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2014-01-30 00:35:15 +0100
committerDirk Engling <erdgeist@erdgeist.org>2014-01-30 00:35:15 +0100
commit3db5208f3e73a0a87309ff8df57b6c4a3b2aadb2 (patch)
tree347c5eb4c6c1a84838a9982d6a54d6425a5a4703
parenta73a63621ed2c455a5bbd72e93ecd0859f8d7150 (diff)
Got the amount of seconds in a day wrong ;) Thanks to Lothar Schmidt
-rwxr-xr-xminimunin2
1 files changed, 1 insertions, 1 deletions
diff --git a/minimunin b/minimunin
index cca7edb..c9c0d10 100755
--- a/minimunin
+++ b/minimunin
@@ -70,7 +70,7 @@ swap)
70 ;; 70 ;;
71uptime) 71uptime)
72 boot=`get_sys kern.boottime`; boot=${boot#*sec =}; boot=${boot%%,*} 72 boot=`get_sys kern.boottime`; boot=${boot#*sec =}; boot=${boot%%,*}
73 printf "uptime.value %d\n" $(( ( `/bin/date +%s` - boot ) / 84600 )) 73 printf "uptime.value %d\n" $(( ( `/bin/date +%s` - boot ) / 86400 ))
74 ;; 74 ;;
75memory) 75memory)
76 pagesize=`get_sys vm.stats.vm.v_page_size` 76 pagesize=`get_sys vm.stats.vm.v_page_size`