diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2014-01-30 00:35:15 +0100 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2014-01-30 00:35:15 +0100 |
commit | 3db5208f3e73a0a87309ff8df57b6c4a3b2aadb2 (patch) | |
tree | 347c5eb4c6c1a84838a9982d6a54d6425a5a4703 | |
parent | a73a63621ed2c455a5bbd72e93ecd0859f8d7150 (diff) |
Got the amount of seconds in a day wrong ;) Thanks to Lothar Schmidt
-rwxr-xr-x | minimunin | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -70,7 +70,7 @@ swap) | |||
70 | ;; | 70 | ;; |
71 | uptime) | 71 | uptime) |
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 | ;; |
75 | memory) | 75 | memory) |
76 | pagesize=`get_sys vm.stats.vm.v_page_size` | 76 | pagesize=`get_sys vm.stats.vm.v_page_size` |