open-cas-linux/casadm
Michal Mielewczyk ffaaaa0a34 casadm: don't cast a float to an int explicitly
If an underflowed float number was casted to an int explicitly, it's value was
rounded to a lower value.

Using `round()` function ensures that the number will be always rounded to a
nearest integer.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-01-29 09:25:16 -05:00
..
safeclib Add strcmp_s and strncmp_s to safe string library 2020-11-26 10:35:23 +01:00
argp.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
argp.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
cas_lib_utils.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
cas_lib_utils.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
cas_lib.c casadm: don't cast a float to an int explicitly 2021-01-29 09:25:16 -05:00
cas_lib.h Add force option to zero-metadata 2021-01-21 15:50:17 -06:00
cas_main.c Add force option to zero-metadata 2021-01-21 15:50:17 -06:00
csvparse.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
csvparse.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
extended_err_msg.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
extended_err_msg.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
intvector.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
intvector.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
Makefile casadm: don't cast a float to an int explicitly 2021-01-29 09:25:16 -05:00
ocf_env_headers.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
ocf_env.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
psort.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
psort.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
statistics_model.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
statistics_view_csv.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
statistics_view_csv.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
statistics_view_raw_csv.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
statistics_view_raw_csv.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
statistics_view_structs.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
statistics_view_text.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
statistics_view_text.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
statistics_view.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
statistics_view.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
table.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
table.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
upgrade.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
upgrade.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
vt100codes.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00