Re: Portmaster Users Digest V95 #289

David Denney (daud@dimensional.com)
Tue, 24 Oct 1995 14:24:39 -0600 (MDT)

On Tue, 24 Oct 1995 sysadmin@ns1.koyote.com wrote:

> I downloaded pmwho and setup mstat.pl but it only read the first 16 modems of my
> 20. Any ideas how to fix?

Change the '16' in the following two places of the mstat.pl program:

--
    $count = 0;
    for ($line=0; $line<16; $line ++) {
        if ($modem{"S".$line}) {
--
sub gen_modem_stats
{
$util = $count / 16 * 100;
$date = `date`;
--

And that's all... (should probably be a var at the start...)

-- 
David Denney        Shell/SLIP/PPP @ 28.8K   Dimensional Communications
daud@geeks.org      Never an hourly charge   821 17th Street, Suite 804
303.528.3199 pager  $25/mo. unlimited time   Denver, Colorado 80202
303.295.6949 voice  <info@dimensional.com>   http://www.dimensional.com/