summaryrefslogtreecommitdiffstats
path: root/remote/modules/hardware-stats/data
diff options
context:
space:
mode:
authorJonathan Bauer2016-07-15 13:33:31 +0200
committerJonathan Bauer2016-07-15 13:33:31 +0200
commite95317dc5caf6907f1b8d8a900320480dc3ab17e (patch)
tree3e865f54c5a34724bd1a79fd8b1d062c48f5999d /remote/modules/hardware-stats/data
parent[dnbd3] fix missing dependency on fusermount for dnbd3-fuse (diff)
parentUpdate several calls to slxlog with --delete instead of having sleep + rm fol... (diff)
downloadtm-scripts-e95317dc5caf6907f1b8d8a900320480dc3ab17e.tar.gz
tm-scripts-e95317dc5caf6907f1b8d8a900320480dc3ab17e.tar.xz
tm-scripts-e95317dc5caf6907f1b8d8a900320480dc3ab17e.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/hardware-stats/data')
-rwxr-xr-xremote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats b/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
index 94c2094f..eba9c287 100755
--- a/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
+++ b/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
@@ -66,7 +66,7 @@ fi
CPUMODEL=$(grep -m1 '^model name\s*:' /proc/cpuinfo | sed 's/^model name\s*:\s*//;s/\s\s*/ /g;s/^ //;s/ $//')
# 6) RAM
-RAM=$(grep '^MemTotal:' /proc/meminfo | awk '{print $2}')
+RAM=$(grep -m1 '^MemTotal:' /proc/meminfo | awk '{print $2}')
RAM=$(( $RAM / 1024 ))
if [ -z "$RAM" ] || [ "$RAM" -lt 500 ]; then
# Fallback to dmidecode