Changeset 9621bedb0c58c4a9dd4d4522a1a08dd1774dc17b

Show
Ignore:
Timestamp:
10/22/09 18:38:36 (9 years ago)
Author:
Sergey Ivanov <seriv@omniti.com>
git-committer:
Sergey Ivanov <seriv@omniti.com> 1256236716 +0000
git-parent:

[998c2340a84751cc98233c2f54b2ff06038fae2a]

git-author:
Sergey Ivanov <seriv@omniti.com> 1256236716 +0000
Message:

available inodes on OpenBSD may be negative

git-svn-id: https://labs.omniti.com/resmon/trunk@220 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Module/INODES.pm

    rae22e3b r9621bed  
    1313                      $dfregex = '(\d+)\s+(\d+)\s+(\d+)\s+(\d+)%'} 
    1414    case 'openbsd'  { $dfcmd = 'df -i'; 
    15                       $dfregex = '(\d+)\s+(\d+)\s+(\d+)\s+(\d+)%\s+(\d+)\s+(\d+)\s+(\d+)%'} 
     15                      $dfregex = '(\d+)\s+(\d+)\s+(-?\d+)\s+(\d+)%\s+(\d+)\s+(\d+)\s+(\d+)%'} 
    1616    else            { $dfcmd = 'df -iP'; 
    1717                      $dfregex = '(\d+)\s+(\d+)\s+(\d+)\s+(\d+)%'}