diff options
author | Simon Rettberg | 2016-07-14 15:07:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-07-14 15:07:30 +0200 |
commit | 8a927da541ff175c2601e54726c642b0d5375b13 (patch) | |
tree | c3846e1b7e7f3a04a7afef27a9367c936306572a /remote/modules/hardware-stats | |
parent | [rfs-stage32] Add --delete and --sync to slxlog, make spam protection a per-u... (diff) | |
download | tm-scripts-8a927da541ff175c2601e54726c642b0d5375b13.tar.gz tm-scripts-8a927da541ff175c2601e54726c642b0d5375b13.tar.xz tm-scripts-8a927da541ff175c2601e54726c642b0d5375b13.zip |
Update several calls to slxlog with --delete instead of having sleep + rm follow the call
Diffstat (limited to 'remote/modules/hardware-stats')
-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 |