muninlite: uptime should report days, not seconds.
upstream bug: https://sourceforge.net/p/muninlite/patches/8/ Closes #810 Signed-off-by: Craig Gallek <cgallek@gmail.com> Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
This commit is contained in:
parent
01a0808f63
commit
1295d8723f
1 changed files with 9 additions and 0 deletions
9
admin/muninlite/patches/110-fix-uptime-days.patch
Normal file
9
admin/muninlite/patches/110-fix-uptime-days.patch
Normal file
|
@ -0,0 +1,9 @@
|
|||
--- a/plugins/uptime
|
||||
+++ b/plugins/uptime
|
||||
@@ -7,5 +7,5 @@
|
||||
echo "uptime.cdef uptime,86400,/"
|
||||
}
|
||||
fetch_uptime() {
|
||||
- echo "uptime.value" $(cut -d\ -f1 /proc/uptime)
|
||||
+ awk '{printf "uptime.value %.2f",$1/86400; print ""}' /proc/uptime
|
||||
}
|
Loading…
Reference in a new issue