cosmetic updated

This commit is contained in:
Jordi Sanfeliu 2013-01-08 11:15:08 +01:00
parent d27138cb8e
commit 63ca849be1
1 changed files with 6 additions and 6 deletions

View File

@ -444,8 +444,8 @@ sub nfss_cgi {
}
for($n = 0; $n < 10; $n++) {
my $str = trim((split(',', $nfss->{graph_0}))[$n]) || "";
if(grep { $_ eq $str } @nfsv) {
my ($i) = grep { $nfsv[$_] eq $str } 0..$#nfsv;
if(grep {$_ eq $str} @nfsv) {
my ($i) = grep {$nfsv[$_] eq $str} 0..$#nfsv;
push(@DEF, "DEF:nfs_$i=$rrd:nfss_$i:AVERAGE");
push(@tmp, "LINE1:nfs_$i$AC[$n]:" . sprintf("%-12s", $str));
push(@tmp, "GPRINT:nfs_$i:LAST: Cur\\: %6.1lf");
@ -526,8 +526,8 @@ sub nfss_cgi {
undef(@DEF);
for($n = 0; $n < 10; $n++) {
my $str = trim((split(',', $nfss->{graph_1}))[$n]) || "";
if(grep { $_ eq $str } @nfsv) {
my ($i) = grep { $nfsv[$_] eq $str } 0..$#nfsv;
if(grep {$_ eq $str} @nfsv) {
my ($i) = grep {$nfsv[$_] eq $str} 0..$#nfsv;
push(@DEF, "DEF:nfs_$i=$rrd:nfss_$i:AVERAGE");
push(@tmp, "LINE1:nfs_$i$AC[$n]:" . sprintf("%-12s", $str));
push(@tmp, "GPRINT:nfs_$i:LAST: Cur\\: %6.1lf");
@ -607,8 +607,8 @@ sub nfss_cgi {
undef(@DEF);
for($n = 0; $n < 10; $n++) {
my $str = trim((split(',', $nfss->{graph_2}))[$n]) || "";
if(grep { $_ eq $str } @nfsv) {
my ($i) = grep { $nfsv[$_] eq $str } 0..$#nfsv;
if(grep {$_ eq $str} @nfsv) {
my ($i) = grep {$nfsv[$_] eq $str} 0..$#nfsv;
push(@DEF, "DEF:nfs_$i=$rrd:nfss_$i:AVERAGE");
push(@tmp, "LINE1:nfs_$i$AC[$n]:" . sprintf("%-12s", $str));
push(@tmp, "GPRINT:nfs_$i:LAST: Cur\\: %6.1lf");