From fc500b1eac4479f37ad0a300e83373e51ce89d3e Mon Sep 17 00:00:00 2001 From: Dan Reading Date: Tue, 29 Mar 2016 13:31:30 -0600 Subject: [PATCH] Dealing with Gb need a larger scale. --- clientside/tmcc/common/checknode/hbis.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/clientside/tmcc/common/checknode/hbis.sh b/clientside/tmcc/common/checknode/hbis.sh index a00c62357..e01d12596 100644 --- a/clientside/tmcc/common/checknode/hbis.sh +++ b/clientside/tmcc/common/checknode/hbis.sh @@ -99,19 +99,20 @@ hbis() { done #echo \${FUNCNAME[0]}:\${LINENO} base:\$base number:\$number bytes=\$bytes c=\$c # make sure it a mult of 4 - cd4=\$(( c /4 )) - cd4m4=\$(( cd4 * 4 )) - if [[ \$c -eq \$cd4m4 ]] ; then + cd8=\$(( c / 8 )) + cd8m8=\$(( cd8 * 8 )) + if [[ \$c -eq \$cd8m8 ]] ; then : - # ok then if more then 30 count up make sure num is a multi of 4 + # ok then if more then 30 count up make sure num is a multi of 8 elif [[ \$c -gt 30 ]] ; then - c4=0 + c8=0 # why does anything over report memory, talking about you d430 - ((--c)) - while [ \$c -ne \$c4 ] ; do + # subtract half the size of the multiple + c=\$(( c - 4 )) + while [ \$c -ne \$c8 ] ; do ((++c)) - cd4=\$(( c / 4 )) - c4=\$(( cd4 * 4 )) + cd8=\$(( c / 8 )) + c8=\$(( cd8 * 8 )) done fi echo \${c}GiB -- GitLab