diff --git a/plugins/disk/nvme b/plugins/disk/nvme index 2bb585bc..cca0e453 100755 --- a/plugins/disk/nvme +++ b/plugins/disk/nvme @@ -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"; } }