Loading
perf/pm: Fix reading check
Since we use precision with bc to calculate the reading, the actual
value may include decimal point (".") in its string. This breaks
the arithmetic check. Replace it with a string check to see if the
value we got is indeed negative.
Change-Id: I2b24c661e4201e33179fd44591af0c0d42d7ac44
Signed-off-by:
Michal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18437
Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>