Skip to content

Commit

Permalink
Correct type for bandwidth json objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ErakhtinB committed Sep 20, 2024
1 parent 8f2ad65 commit 5c8495a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/telemetry/impl/service_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c8495a

Please sign in to comment.