mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fixes for GetPerfTimerStats (#457)
* getperftimerstatsjson: fix json format * getperftimerstatsjson: fix td::min ambiguous template parameter
This commit is contained in:
parent
bd5f4f61ac
commit
5b2e96c2fa
2 changed files with 4 additions and 4 deletions
|
@ -1032,7 +1032,7 @@ td::Status GetPerfTimerStatsJsonQuery::receive(td::BufferSlice data) {
|
|||
gtail = true;
|
||||
}
|
||||
|
||||
sb << "\n '" << v->name_ << "': {";
|
||||
sb << "\n \"" << v->name_ << "\": {";
|
||||
bool tail = false;
|
||||
for (const auto &stat : v->stats_) {
|
||||
if (tail) {
|
||||
|
@ -1041,7 +1041,7 @@ td::Status GetPerfTimerStatsJsonQuery::receive(td::BufferSlice data) {
|
|||
tail = true;
|
||||
}
|
||||
|
||||
sb << "\n " << stat->time_ << ": [";
|
||||
sb << "\n \"" << stat->time_ << "\": [";
|
||||
sb << "\n " << stat->min_ << ",";
|
||||
sb << "\n " << stat->avg_ << ",";
|
||||
sb << "\n " << stat->max_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue