mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-18 16:48:44 +00:00
chore: prefer tabs over spaces for all indentation
This commit is contained in:
parent
df08e47bdc
commit
49cda42be9
1 changed files with 11 additions and 11 deletions
|
@ -90,7 +90,7 @@ function turbostat_exists {
|
||||||
|
|
||||||
# Check if we can really run turbostat, because the command might be
|
# Check if we can really run turbostat, because the command might be
|
||||||
# executable but only return a WARNING that it needs to be installed
|
# executable but only return a WARNING that it needs to be installed
|
||||||
$TURBOSTAT_PATH --help >/dev/null 2>&1
|
$TURBOSTAT_PATH --help >/dev/null 2>&1
|
||||||
if [ $? -gt 1 ]; then
|
if [ $? -gt 1 ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
@ -182,19 +182,19 @@ function is_requested_graph {
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
autoconf)
|
autoconf)
|
||||||
if turbostat_exists; then
|
if turbostat_exists; then
|
||||||
echo "yes"
|
echo "yes"
|
||||||
else
|
else
|
||||||
echo "no (turbostat command not found)"
|
echo "no (turbostat command not found)"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
suggest)
|
suggest)
|
||||||
if turbostat_exists; then
|
if turbostat_exists; then
|
||||||
echo "watt"
|
echo "watt"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
GRAPH_TYPE=${0##*turbostat_}
|
GRAPH_TYPE=${0##*turbostat_}
|
||||||
|
|
||||||
for TYPE in "${SUPPORTED_GRAPH_TYPES[@]}"; do
|
for TYPE in "${SUPPORTED_GRAPH_TYPES[@]}"; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue