Commit be7e07a
committed
mon/OSDMonitor.cc: fix UNINTENDED_INTEGER_DIVISION
Fix for:
CID 1297885 (#1 of 2): Result is not floating-point (UNINTENDED_INTEGER_DIVISION)
integer_division: Dividing integer expressions g_conf->mon_pool_quota_warn_threshold
and 100, and then converting the integer quotient to type float. Any remainder,
or fractional part of the quotient, is ignored.
CID 1297885 (#2 of 2): Result is not floating-point (UNINTENDED_INTEGER_DIVISION)
integer_division: Dividing integer expressions g_conf->mon_pool_quota_crit_threshold
and 100, and then converting the integer quotient to type float. Any remainder,
or fractional part of the quotient, is ignored.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>1 parent 268923c commit be7e07a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3896 | 3896 | | |
3897 | 3897 | | |
3898 | 3898 | | |
3899 | | - | |
3900 | | - | |
| 3899 | + | |
| 3900 | + | |
3901 | 3901 | | |
3902 | 3902 | | |
3903 | 3903 | | |
| |||
0 commit comments