Changeset e1db9954cbea6017aba56ec8ad0fd13e0d607208

Show
Ignore:
Timestamp:
12/29/07 14:48:18 (7 years ago)
Author:
Brian Holcomb <holcomb@omniti.com>
git-committer:
Brian Holcomb <holcomb@omniti.com> 1198939698 +0000
git-parent:

[ce65f3a2497dc3e397249ce0721ff283be8b603e]

git-author:
Brian Holcomb <holcomb@omniti.com> 1198939698 +0000
Message:

linux df needs posix option

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

Files:

Legend:

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

    r3869a70 re1db995  
    9191@ISA = qw/Resmon::Module/; 
    9292 
     93my $dfcmd = ($^O eq 'linux') ? 'df -kP' : 'df -k'; 
     94 
    9395sub handler { 
    9496  my $arg = shift; 
     
    9698  return $os if $os; 
    9799  my $devorpart = $arg->{'object'}; 
    98   my $output = cache_command("df -k", 120); 
     100  my $output = cache_command("$dfcmd", 120); 
    99101  my ($line) = grep(/$devorpart\s*/, split(/\n/, $output)); 
    100102  if($line =~ /(\d+)%/) {