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
|
@ -3314,8 +3314,8 @@ void ValidatorEngine::run_control_query(ton::ton_api::engine_validator_getPerfTi
|
|||
int cnt = 0;
|
||||
for (const auto &[time, duration] : stats.stats) {
|
||||
if (now - time <= static_cast<double>(t)) {
|
||||
min = td::min(min, duration);
|
||||
max = td::max(max, duration);
|
||||
min = td::min<double>(min, duration);
|
||||
max = td::max<double>(max, duration);
|
||||
sum += duration;
|
||||
++cnt;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue