Skip to content

Commit

Permalink
[backend] use better variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Oct 10, 2012
1 parent 8d5ed22 commit d1c97cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/backend/BSXML.pm
Expand Up @@ -448,9 +448,9 @@ our $buildstatistics = [
'buildstatistics' =>
[ 'disk' =>
[],
'maxfillment',
'iorequests',
'iosectors',
'max_storage_usage',
'io_requests',
'io_sectors',
],
# 'cpu' =>
];
Expand Down
6 changes: 3 additions & 3 deletions src/backend/bs_worker
Expand Up @@ -2075,15 +2075,15 @@ sub dobuild {
while(<FILE>) {
my ($key, $value) = split( ": ", $_ );
if ($key eq "MAX_mb_used_on_disk" ){
$disk->{'maxfillment'} = $value;
$disk->{'max_storage_usage'} = $value;
$stats->{'disk'} = $disk;
} elsif ($key eq "IO_requests_read" || $key eq "IO_requests_write" ){
$iorequests += $value;
$disk->{'iorequests'} = $iorequests;
$disk->{'io_requests'} = $iorequests;
$stats->{'disk'} = $disk;
} elsif ($key eq "IO_sectors_read" || $key eq "IO_sectors_write" ){
$iosectors += $value;
$disk->{'iosectors'} = $iosectors;
$disk->{'io_sectors'} = $iosectors;
$stats->{'disk'} = $disk;
}
}
Expand Down

0 comments on commit d1c97cd

Please sign in to comment.