]> www.infradead.org Git - users/hch/nvme-cli.git/commit
Use correct power scale bits
authorKeith Busch <keith.busch@intel.com>
Sat, 14 May 2016 16:51:31 +0000 (12:51 -0400)
committerKeith Busch <keith.busch@intel.com>
Sat, 14 May 2016 16:51:31 +0000 (12:51 -0400)
commit5cb0521582504ebeec75ff74b57345773551f5ec
treee411830e9edf97c4abc44ec17984823406191d9d
parent953904624193651082acb51310085bfffa945826
Use correct power scale bits

The active and idle power scales occupy the upper 2 bits of their byte
fields. Shift the scales to use these bits when decoding their values.

Issue: https://github.com/linux-nvme/nvme-cli/issues/85
Signed-off-by: Keith Busch <keith.busch@intel.com>
linux/nvme.h
nvme-print.c