From 5c8495a4f36c786c44b5d893abe84361fdc80f56 Mon Sep 17 00:00:00 2001 From: Boris Erakhtin Date: Fri, 20 Sep 2024 19:47:32 +0800 Subject: [PATCH] Correct type for bandwidth json objects --- core/telemetry/impl/service_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/telemetry/impl/service_impl.cpp b/core/telemetry/impl/service_impl.cpp index ae37672ffd..6e98ef8c79 100644 --- a/core/telemetry/impl/service_impl.cpp +++ b/core/telemetry/impl/service_impl.cpp @@ -459,8 +459,8 @@ namespace kagome::telemetry { auto bandwidth = getBandwidth(); rapidjson::Value upBandwidth, downBandwidth; - upBandwidth.SetInt(bandwidth.up); - downBandwidth.SetInt(bandwidth.down); + downBandwidth.SetUint64(bandwidth.down); + upBandwidth.SetUint64(bandwidth.up); // fields order is preserved the same way substrate orders it payload.AddMember("bandwidth_download", downBandwidth, allocator) .AddMember("bandwidth_upload", upBandwidth, allocator)