Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In other words, given the following statement (where $(_diskspace.mb) is 2.5):

<pre>
set fspc=<$(_diskspace.mb) + 20>
</pre>
Panel
Html bobswift

UDM sets $(fspc) to 22, not 22.5.


Likewise, UDM only recognizes the integral part of the $(_diskspace.xx) value when performing comparisons. For example, given a $(_diskspace.gb) value of 10.3:

html-bobswift
Panel


<pre>
if <$(_diskspace.gb) LT 10.5>
   echo "This statement is not displayed"
else
   echo "But this statement is"
end
</pre>



UDM displays "But this statement is" even though 10.3 is less than 10.5. The reason for this is that UDM only recognizes the integral portion (that is, the "10") in each value. The quantities appear equal to UDM, so the LT test fails.

...