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

Merge pull request #1132 from kjetilho/nvme_facepalm

silly bug: writecycles must be calculated from *written* bytes
This commit is contained in:
Steve Schnepp 2020-11-15 11:18:03 +01:00 committed by GitHub
commit a6fc9b56cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -267,7 +267,7 @@ EOF
my $info = $list->{$_};
# 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";
}
}