in reply to Re: (Vortacist) Re: monitor.pl
in thread monitor.pl
Well, I made sure to right-click and save the code that way (last time I had clicked the d/l link and pasted the code into emacs, which generally works) and despite removing the ^M's, no ^O appeared. So I added it in myself, but then when I tried running monitor, I had this problem:
Illegal division by zero at monitor.pl line 138.
That line is in drawvals, and it's:
$swapUsage = $values{useSwap}/$values{totSwap})*100;
Not quite sure what's going on there. Is a value for totSwap not being added to %values, perhaps?
FYI, I am running this script using Perl 5.6.1 on Debian/GNU Linux.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (Vortacist) Re: Re: Re: monitor.pl
by xphase_work (Pilgrim) on Jun 07, 2001 at 21:20 UTC |
In Section
Code Catacombs