1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

silly bug: writecycles must be calculated from *written* bytes

This fixes issue #1127
This commit is contained in:
Kjetil Torgrim Homme 2020-11-13 22:54:19 +01:00
parent 17c936ed96
commit 6c7ad652b9

View file

@ -267,7 +267,7 @@ EOF
my $info = $list->{$_}; my $info = $list->{$_};
# The unit size reported is 1000 blocks. # The unit size reported is 1000 blocks.
my $cycles = $info->{smart}->{data_units_read} * 512_000 / $info->{capacity}; my $cycles = $info->{smart}->{data_units_written} * 512_000 / $info->{capacity};
print "$_.value $cycles\n"; print "$_.value $cycles\n";
} }
} }