]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
util/logging: fix build on 32-bit arch wip-new
authorSage Weil <sage@redhat.com>
Thu, 26 Mar 2015 18:03:56 +0000 (11:03 -0700)
committerSage Weil <sage@redhat.com>
Thu, 26 Mar 2015 18:03:56 +0000 (11:03 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
util/logging.cc

index e2d1fb3461b27d7b23f8d447bd93cb748a3697ad..c8cd1217ea3d14a071da01b73c567dcf216db9bd 100644 (file)
@@ -38,7 +38,7 @@ int AppendHumanMicros(uint64_t micros, char* output, int len) {
   } else if (micros < 1000000l * 60) {
     return snprintf(output, len, "%.3lf sec",
                     static_cast<double>(micros) / 1000000);
-  } else if (micros < 1000000l * 60 * 60) {
+  } else if (micros < 1000000ll * 60 * 60) {
     return snprintf(output, len, "%02" PRIu64 ":%05.3f M:S",
         micros / 1000000 / 60,
         static_cast<double>(micros % 60000000) / 1000000);