diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2016-03-04 11:53:00 +1300 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2016-03-04 11:53:00 +1300 |
commit | 941288a85098c489a268d40adddd4751545d057e (patch) | |
tree | bea19ae78e209a914883527a54a8a1ad7c991260 | |
parent | 0c7f3692a39737c8ad6ac2f85197268f6f488b76 (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-x | minimunin | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -239,7 +239,7 @@ cat <<-EOF | |||
239 | EOF | 239 | EOF |
240 | ;; | 240 | ;; |
241 | cpu) | 241 | cpu) |
242 | cdef=`get_sys kern.clockrate` ; cdef=${cdef#*stathz =}; cdef=${cdef% *}",/,100,*" | 242 | cdef=$(get_sys kern.clockrate) ; cdef=${cdef#*stathz = }; cdef=${cdef% *}",/,100,*" |
243 | cat <<-EOF | 243 | cat <<-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 |