]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSD.cc: fix UNINTENDED_INTEGER_DIVISION
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 17 Sep 2015 15:01:17 +0000 (17:01 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 29 Jan 2016 20:51:17 +0000 (21:51 +0100)
commit922d0b226587d278414a1f96b72783d7b0145293
treec90b56fdc172ed48558217bd1293d92bd5df88bf
parentb838300c5c1f9e7e35dba47d1308e14e8e88ced9
osd/OSD.cc: fix UNINTENDED_INTEGER_DIVISION

Fix for:

CID 1297883 (#1 of 1): Result is not floating-point (UNINTENDED_INTEGER_DIVISION)
 integer_division: Dividing integer expressions this->cct->_conf->osd_heartbeat_grace
 and 2, and then converting the integer quotient to type double. Any remainder,
 or fractional part of the quotient, is ignored.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osd/OSD.cc