Browse Source

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>
lilik-openwrt-22.03
Craig Gallek 10 years ago
committed by Jonathan McCrohan
parent
commit
1295d8723f
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      admin/muninlite/patches/110-fix-uptime-days.patch

+ 9
- 0
admin/muninlite/patches/110-fix-uptime-days.patch View 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…
Cancel
Save