We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92a6c58 + 478d0ae commit 18a571cCopy full SHA for 18a571c
bin/register_new_os2borgerpc_client.sh
@@ -169,7 +169,7 @@ while true; do
169
[ -z "$CPUS" ] && CPUS="Identification failed"
170
set_os2borgerpc_config pc_cpus "$CPUS"
171
172
- RAM="$(LANG=c lsmem | grep "Total online" | cut --delimiter ':' --fields 2 | xargs)"
+ RAM="$(free -h | awk '/^Mem:/ {print $2}')"
173
[ -z "$RAM" ] && RAM="Identification failed"
174
RAM=${RAM:0:100}
175
set_os2borgerpc_config pc_ram "$RAM"
0 commit comments