1
0
Fork 0
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:
pimlie 2025-01-08 16:31:26 +01:00
parent 671efa13fd
commit fb80912066

View file

@ -98,14 +98,6 @@ function turbostat_exists {
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
function emit_watt_graph {
local col label
@ -198,7 +190,9 @@ case $1 in
fi
;;
suggest)
echo "watt"
if turbostat_exists; then
echo "watt"
fi
;;
*)
GRAPH_TYPE=${0##*turbostat_}