]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
log: high latency timestamp issue
author丁剑 <djukyo@gmail.com>
Sun, 19 Feb 2023 07:43:07 +0000 (15:43 +0800)
committerDaniel Wagner <wagi@monom.org>
Wed, 1 Mar 2023 11:09:52 +0000 (12:09 +0100)
1. The old nvme-cli set-feature uses 32bit to represent timestamp, but the spec definition is 48bit.
2. memblaze made a slight correction to allow for overflow.
3. Now this correction is no longer needed.

Signed-off-by: 丁剑 <djukyo@gmail.com>
plugins/memblaze/memblaze-nvme.c

index dba5fe883f14afa5b4b631eb3bcb57ecaf7f1d3d..6cc03b616ef717001a15e6f6c4c27a0e785a74c7 100644 (file)
@@ -707,7 +707,7 @@ static int glp_high_latency(FILE *fdi, char *buf, int buflen, int print)
         }
         else  //  sort
         {
-            timestamp = logEntry->timestampH - 1;
+            timestamp = logEntry->timestampH;
             timestamp = timestamp << 32;
             timestamp += logEntry->timestampL;
             tt = timestamp / 1000;