Skip to content

Commit 478d0ae

Browse files
committed
Use free -h to detect RAM
1 parent 92a6c58 commit 478d0ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/register_new_os2borgerpc_client.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ while true; do
169169
[ -z "$CPUS" ] && CPUS="Identification failed"
170170
set_os2borgerpc_config pc_cpus "$CPUS"
171171

172-
RAM="$(LANG=c lsmem | grep "Total online" | cut --delimiter ':' --fields 2 | xargs)"
172+
RAM="$(free -h | awk '/^Mem:/ {print $2}')"
173173
[ -z "$RAM" ] && RAM="Identification failed"
174174
RAM=${RAM:0:100}
175175
set_os2borgerpc_config pc_ram "$RAM"

0 commit comments

Comments
 (0)