Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
9459fb4b
Commit
9459fb4b
authored
Oct 30, 2014
by
Dan Reading
Browse files
make sure that memory bounderies are multipules of 4
parent
404f6b27
Changes
1
Show whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/hbis.sh
View file @
9459fb4b
...
...
@@ -98,6 +98,15 @@ hbis() {
[[
$x
-ge
$bytes
]]
&&
break
done
#echo ${FUNCNAME[0]}:${LINENO} base:$base number:$number bytes=$bytes c=$c
# gt 32G then make sure num is a multi of 4
if
[[
$c
-gt
30
]]
;
then
c4
=
0
while
[
$c
-ne
$c4
]
;
do
((
++c
))
cd4
=
$((
c
/
4
))
c4
=
$((
cd4
*
4
))
done
fi
echo
${
c
}
GiB
;;
m
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment