]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
wdc: Fix timestamp displayed by vs-firmware-activate-history command
authorjeff-lien-wdc <jeff.lien@wdc.com>
Tue, 5 Mar 2024 21:22:00 +0000 (15:22 -0600)
committerDaniel Wagner <wagi@monom.org>
Tue, 19 Mar 2024 08:30:36 +0000 (09:30 +0100)
commitf7f53b6ce8959f85605b3e012e78472062dac558
tree7f58ef0828ebcf573da38908a19c870a86f5463d
parentb54bdb93c1330475595ee29ecfeab5f7ff10d427
wdc:  Fix timestamp displayed by vs-firmware-activate-history command

The actual timestamp value is in bytes 0:5 of the 8 byte field.
The code was using all 8 bytes so a change was made to mask off
the top 2 bytes.  The timestamp calculations were also simplified
to be more maintainable.

Signed-off-by: jeff-lien-wdc <jeff.lien@wdc.com>
plugins/wdc/wdc-nvme.c
plugins/wdc/wdc-nvme.h