Menu ▾ ▴

#23 system/platform/freebsd.pm

v0.5.0-pre4
open
Matt B
FreeBSD (4)
5
2008-11-10
2008-11-10
No

Hello

function read_mem() uses $_ variable in "while(<IN>)...split;"
But it is called from sample() function, which depends on value of $_;
So, add some local temporary variable in read_mem() and use it in scanning <IN> file.

Thanks

Discussion

  • Alex V Breger

    Alex V Breger - 2008-11-10

    the same for read_cpu "while(<CPU>)...split"

     
  • Alex V Breger

    Alex V Breger - 2008-11-10

    read_mem fails to get swap data

    $ pstat -sk
    Device 1K-blocks Used Avail Capacity
    /dev/ad8s1b 2097152 764 2096388 0%

    use "split ' ',$str" in previous patch

     

Log in to post a comment.