to be consistent with the same logic in V1, and more importantly, it is
more correct.
the change was suggested by Ilya Dryomov <idryomov@redhat.com>.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
message->get_type() == CEPH_MSG_OSD_OPREPLY) {
utime_t ltt_processed_stamp = ceph_clock_now();
double usecs_elapsed =
- (ltt_processed_stamp.to_nsec() - recv_stamp.to_nsec()) / 1000;
+ ((double)(ltt_processed_stamp.to_nsec() - recv_stamp.to_nsec())) / 1000;
ostringstream buf;
if (message->get_type() == CEPH_MSG_OSD_OP)
OID_ELAPSED_WITH_MSG(message, usecs_elapsed, "TIME_TO_DECODE_OSD_OP",