From 49cda42be98d2a1918f9fdf98039ff07a13c368e Mon Sep 17 00:00:00 2001 From: pimlie Date: Thu, 9 Jan 2025 15:38:15 +0100 Subject: [PATCH] chore: prefer tabs over spaces for all indentation --- plugins/sensors/turbostat_ | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/plugins/sensors/turbostat_ b/plugins/sensors/turbostat_ index 8f769fd1..da5905ff 100755 --- a/plugins/sensors/turbostat_ +++ b/plugins/sensors/turbostat_ @@ -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