src/cxx_supportlib/Utils/JsonUtils.h in passenger-5.0.30 vs src/cxx_supportlib/Utils/JsonUtils.h in passenger-5.1.0
- old
+ new
@@ -239,10 +239,10 @@
inline Json::Value
durationToJson(unsigned long long duration) {
Json::Value doc;
char buf[64];
- doc["microseconds"] = duration;
+ doc["microseconds"] = (Json::UInt64) duration;
if (duration >= 10 * 1000000) {
snprintf(buf, sizeof(buf), "%.1fs", duration / 1000000.0);
} else {
snprintf(buf, sizeof(buf), "%.1fms", duration / 1000.0);
}