mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Merge pull request #1132 from kjetilho/nvme_facepalm
silly bug: writecycles must be calculated from *written* bytes
This commit is contained in:
commit
a6fc9b56cf
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue