[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Devmon MATH
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Devmon MATH
- From: "Ralph Mitchell" <ralphmitchell (at) gmail.com>
- Date: Mon, 24 Sep 2007 13:59:47 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=5cPFap2ZQ/HldqRAZ2W3u1qBS0DyDmg+VTWpbvniBAo=; b=Rz6TKt2nPTM5Od3wH15F1iu34Cjh+tA5gD8IQ0CjjSc+JUTaTGgUkkU9V6XSrq+5TG+ndVc5wvansQKpYMqsNOdyJTI4LtdNJIMsqdUnCJFlMXkK5mvfuXtTI5dH2bID8IyzMPmohp73WT6+QLxF6YNn3kje6sQcO47CjtSSYzs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pdTvhBNvJ1Mm72fCHAKt85uIRot1boqF1iAC5RSChVmfKEQVfioV5ecnKmkwo27xHZ53G0mdtye5zRjmp2l5LWua8xiVf6MSRx2huhNt/GHxbh4JsizD9NTVx1qGBH9DbKgQ+S0VrBCA9hsQaVwt03vH7zfVTtC6aUFG/iF29cY=
- References: <997a524e0709241048s7630f4fap43713cdaf72cf5d4 (at) mail.gmail.com> <46F7FA66.30907 (at) cisco.com>
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