mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-12 11:12:16 +00:00
Remove c++17 structure bindings from GetPerfTimerStats (#460)
* Remove c++17 structure bindings
This commit is contained in:
parent
d9a5b2ccdc
commit
1464ae0b0a
1 changed files with 3 additions and 1 deletions
|
@ -3312,7 +3312,9 @@ void ValidatorEngine::run_control_query(ton::ton_api::engine_validator_getPerfTi
|
|||
double max = std::numeric_limits<double>::max();
|
||||
double sum = 0;
|
||||
int cnt = 0;
|
||||
for (const auto &[time, duration] : stats.stats) {
|
||||
for (const auto &stat : stats.stats) {
|
||||
double time = stat.first;
|
||||
double duration = stat.second;
|
||||
if (now - time <= static_cast<double>(t)) {
|
||||
min = td::min<double>(min, duration);
|
||||
max = td::max<double>(max, duration);
|
||||
|
|
Loading…
Reference in a new issue