summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2016-03-04 11:53:00 +1300
committerDirk Engling <erdgeist@erdgeist.org>2016-03-04 11:53:00 +1300
commit941288a85098c489a268d40adddd4751545d057e (patch)
treebea19ae78e209a914883527a54a8a1ad7c991260
parent0c7f3692a39737c8ad6ac2f85197268f6f488b76 (diff)
Import fix for cpu clock rate.
Uses https://bugs.freebsd.org/bugzilla/attachment.cgi?id=167629&action=edit Thanks to xavi.garcia@gmail.com
-rwxr-xr-xminimunin2
1 files changed, 1 insertions, 1 deletions
diff --git a/minimunin b/minimunin
index ada2a3e..881d6be 100755
--- a/minimunin
+++ b/minimunin
@@ -239,7 +239,7 @@ cat <<-EOF
239EOF 239EOF
240;; 240;;
241cpu) 241cpu)
242 cdef=`get_sys kern.clockrate` ; cdef=${cdef#*stathz =}; cdef=${cdef% *}",/,100,*" 242 cdef=$(get_sys kern.clockrate) ; cdef=${cdef#*stathz = }; cdef=${cdef% *}",/,100,*"
243cat <<-EOF 243cat <<-EOF
244 graph_title CPU usage 244 graph_title CPU usage
245 graph_order system interrupt user nice idle 245 graph_order system interrupt user nice idle