Changeset 1a465c2f4e2ab399ae433a1c36424bf3852a07db
- Timestamp:
- 03/24/09 17:05:05
(9 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
rae22e3b |
r1a465c2 |
|
8 | 8 | my $host = $arg->{'host'}; |
---|
9 | 9 | 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); |
---|
11 | 11 | $output =~ /^(\d+)\s/; |
---|
12 | | my $size = $1; |
---|
| 12 | my $size = $1 * 1024; |
---|
13 | 13 | my $minsize = $arg->{minimum}; |
---|
14 | 14 | my $maxsize = $arg->{maximum}; |
---|