Changeset 1a465c2f4e2ab399ae433a1c36424bf3852a07db

Show
Ignore:
Timestamp:
03/24/09 17:05:05 (5 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1237914305 +0000
git-parent:

[5e2f9939b0beabaaa0b166fee5d535b0b53ce6fc]

git-author:
Mark Harrison <mark@omniti.com> 1237914305 +0000
Message:

du -b isn't portable, switch to du -k and multply by 1024

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

Files:

Legend:

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

    rae22e3b r1a465c2  
    88  my $host = $arg->{'host'}; 
    99  my $file = $arg->{'object'}; 
    10   my $output = cache_command("ssh -i /root/.ssh/id_dsa $host du -b $file", 600); 
     10  my $output = cache_command("ssh -i /root/.ssh/id_dsa $host du -k $file", 600); 
    1111  $output =~ /^(\d+)\s/;  
    12   my $size = $1
     12  my $size = $1 * 1024
    1313  my $minsize = $arg->{minimum}; 
    1414  my $maxsize = $arg->{maximum};