summaryrefslogtreecommitdiff
path: root/src/components/telemetry_monitor/src/metric_wrapper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/telemetry_monitor/src/metric_wrapper.cc')
-rw-r--r--src/components/telemetry_monitor/src/metric_wrapper.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/telemetry_monitor/src/metric_wrapper.cc b/src/components/telemetry_monitor/src/metric_wrapper.cc
index 8b2ba6f220..fdcd8f6a9c 100644
--- a/src/components/telemetry_monitor/src/metric_wrapper.cc
+++ b/src/components/telemetry_monitor/src/metric_wrapper.cc
@@ -54,9 +54,9 @@ std::string MetricWrapper::GetStyledString() {
Json::Value MetricWrapper::GetJsonMetric() {
Json::Value result;
if (resources) {
- result[strings::stime] = resources->stime;
- result[strings::utime] = resources->utime;
- result[strings::memory] = resources->memory;
+ result[strings::stime] = static_cast<Json::Int64>(resources->stime);
+ result[strings::utime] = static_cast<Json::Int64>(resources->utime);
+ result[strings::memory] = static_cast<Json::Int64>(resources->memory);
}
return result;
}