]> git.michaelhowe.org Git - packages/m/munin-plugins-afs.git/commitdiff
Add missing scaling factor
authorMichael Howe <michael@michaelhowe.org>
Thu, 27 Dec 2018 11:03:54 +0000 (11:03 +0000)
committerMichael Howe <michael@michaelhowe.org>
Thu, 27 Dec 2018 11:03:54 +0000 (11:03 +0000)
plugins/afs_volumes_partition_

index 79fd9f5aa37bc4d1137329862f7deebf5a39fcac..ea7c54c1e4212876993f7295f958a0c40586eb8c 100755 (executable)
@@ -83,7 +83,7 @@ sub serverinfo {
             } elsif ($line =~ /^\s+MaxQuota\s+(\d+) K\s*$/ && defined $volume) {
                 $results{v}{$volume}{quota} = $1 * 1024;
                 $results{v}{$volume}{percent} = sprintf "%.2f", ( $results{v}{$volume}{size} / $results{v}{$volume}{quota} * 100 );
-                $results{t}{quota} += $1;
+                $results{t}{quota} += $1 * 1024;
                 $volume = undef;
             } elsif ($line =~ /^\s*$/) { # next volume
                 $volume = undef;