mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +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
|
||||
# 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
|
||||
return 1
|
||||
fi
|
||||
|
@ -182,19 +182,19 @@ function is_requested_graph {
|
|||
}
|
||||
|
||||
case $1 in
|
||||
autoconf)
|
||||
if turbostat_exists; then
|
||||
echo "yes"
|
||||
else
|
||||
echo "no (turbostat command not found)"
|
||||
fi
|
||||
;;
|
||||
suggest)
|
||||
autoconf)
|
||||
if turbostat_exists; then
|
||||
echo "yes"
|
||||
else
|
||||
echo "no (turbostat command not found)"
|
||||
fi
|
||||
;;
|
||||
suggest)
|
||||
if turbostat_exists; then
|
||||
echo "watt"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
*)
|
||||
GRAPH_TYPE=${0##*turbostat_}
|
||||
|
||||
for TYPE in "${SUPPORTED_GRAPH_TYPES[@]}"; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue