Skip to content

Commit 6df15e5

Browse files
committed
nvme_metrics: adjust wording of comments
Signed-off-by: Daniel Swarbrick <[email protected]>
1 parent 75f33a7 commit 6df15e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: nvme_metrics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
metrics = {
2626
# fmt: off
27+
# Host-specific metrics
2728
"nvmecli": Info(
2829
"nvmecli",
2930
"nvme-cli tool information",
@@ -196,8 +197,7 @@ def main():
196197
metrics["physical_size"].labels(ns_dev).set(ns["PhysicalSize"])
197198
metrics["used_bytes"].labels(ns_dev).set(ns["UsedBytes"])
198199

199-
# Most SSDs (perhaps _all_ consumer grade SSDs) only contain a single namespace.
200-
# Fetch the device global SMART log by omitting any --namespace-id flag.
200+
# Fetch the controller global SMART log by omitting the --namespace-id flag.
201201
smart_log = exec_nvme_json("smart-log", os.path.join("/dev", ctrl["Controller"]))
202202

203203
# Various counters in the NVMe specification are 128-bit, which would have to

0 commit comments

Comments
 (0)