summaryrefslogtreecommitdiffstats
path: root/daemon/system-info.sh
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/system-info.sh')
-rwxr-xr-xdaemon/system-info.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/system-info.sh b/daemon/system-info.sh
index 43f761c2d..2a3ba7d76 100755
--- a/daemon/system-info.sh
+++ b/daemon/system-info.sh
@@ -313,7 +313,7 @@ elif [ -r /proc/cpuinfo ]; then
if (echo "${CPU_INFO_SOURCE}" | grep -qv procfs); then
CPU_INFO_SOURCE="${CPU_INFO_SOURCE} procfs"
fi
- value=$(grep "cpu MHz" /proc/cpuinfo 2>/dev/null | grep -o "[0-9]*" | head -n 1 | awk '{print int($0*1000000)}')
+ value=$(grep "cpu MHz" /proc/cpuinfo 2>/dev/null | grep -o "[0-9]*" | head -n 1 | awk '{printf "%0.f",int($0*1000000)}')
[ -n "$value" ] && CPU_FREQ="$value"
fi