24 Sep
2007
24 Sep
'07
6:59 p.m.
On 9/24/07, Charles Jones <jonescr at cisco.com> wrote:
Should it be "* 100" instead of "x 100" ?
PhysMemPerc : MATH : ({PhysMemUsed} / {PhysMemSize}) x 100
No, there's a translation that happens in the dm_tests.pm module:
# Convert our math symbols to their perl equivalents
$expr =~ s/x/\*/g; # Multiplication
$expr =~ s/\^/**/g; # Exponentiation
I assume that having asterisks in the string causes problems with other devmon code prior to that point.
Anyway, it's the subract that either doesn't work, or fails to create the PhysMemUsed variable that gets used in the subsequent calculation.
Ralph Mitchell