mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
chore: remove unused fn & only suggest graphs when turbostat exists
This commit is contained in:
parent
671efa13fd
commit
fb80912066
1 changed files with 3 additions and 9 deletions
|
@ -98,14 +98,6 @@ function turbostat_exists {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Left trim white spaces
|
|
||||||
function ltrim {
|
|
||||||
local var="$*"
|
|
||||||
# remove leading whitespace characters
|
|
||||||
var="${var#"${var%%[![:space:]]*}"}"
|
|
||||||
echo "$var"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Emit config for package watt graph
|
# Emit config for package watt graph
|
||||||
function emit_watt_graph {
|
function emit_watt_graph {
|
||||||
local col label
|
local col label
|
||||||
|
@ -198,7 +190,9 @@ case $1 in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
suggest)
|
suggest)
|
||||||
echo "watt"
|
if turbostat_exists; then
|
||||||
|
echo "watt"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
GRAPH_TYPE=${0##*turbostat_}
|
GRAPH_TYPE=${0##*turbostat_}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue