diff options
| author | Jonathan Bauer | 2016-07-15 13:33:31 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2016-07-15 13:33:31 +0200 |
| commit | e95317dc5caf6907f1b8d8a900320480dc3ab17e (patch) | |
| tree | 3e865f54c5a34724bd1a79fd8b1d062c48f5999d /remote/modules/hardware-stats/data | |
| parent | [dnbd3] fix missing dependency on fusermount for dnbd3-fuse (diff) | |
| parent | Update several calls to slxlog with --delete instead of having sleep + rm fol... (diff) | |
| download | tm-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-x | remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 2 |
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 |
