summaryrefslogtreecommitdiffstats
path: root/plugins/seagate
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-08-15 12:32:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-08-15 12:32:10 +0000
commitd183dae21720faf38bc4f516052a31227a58f212 (patch)
treeb44b23345eb9b308e49c96e616bc2faaf0ef256b /plugins/seagate
parentAdding upstream version 2.1~rc0. (diff)
downloadnvme-cli-d183dae21720faf38bc4f516052a31227a58f212.tar.xz
nvme-cli-d183dae21720faf38bc4f516052a31227a58f212.zip
Adding upstream version 2.1.2.upstream/2.1.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/seagate')
-rw-r--r--plugins/seagate/seagate-nvme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/seagate/seagate-nvme.c b/plugins/seagate/seagate-nvme.c
index 516cb1e..a527c0f 100644
--- a/plugins/seagate/seagate-nvme.c
+++ b/plugins/seagate/seagate-nvme.c
@@ -848,7 +848,7 @@ static int temp_stats(int argc, char **argv, struct command *cmd, struct plugin
if(strcmp(cfg.output_format,"json"))
printf("Seagate Temperature Stats Information :\n");
/*STEP-1 : Get Current Temperature from SMART */
- err = nvme_get_log_smart(fd, 0xffffffff, true, &smart_log);
+ err = nvme_get_log_smart(fd, 0xffffffff, false, &smart_log);
if (!err) {
temperature = ((smart_log.temperature[1] << 8) | smart_log.temperature[0]);
temperature = temperature ? temperature - 273 : 0;