mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 19:00:22 +08:00
fix: fixed macOS build, H A C K
This commit is contained in:
parent
2eefe1545d
commit
ed5b9e6011
@ -1 +1 @@
|
||||
5723
|
||||
5724
|
||||
|
@ -50,8 +50,12 @@ namespace Qv2ray::components::latency
|
||||
#undef max
|
||||
#endif
|
||||
resultData.avg += _latency;
|
||||
resultData.best = std::min(resultData.best, _latency);
|
||||
resultData.worst = std::max(resultData.worst, _latency);
|
||||
#define _qvmin_(x, y) ((x) < (y) ? (x) : (y))
|
||||
#define _qvmax_(x, y) ((x) > (y) ? (x) : (y))
|
||||
resultData.best = _qvmin_(resultData.best, _latency);
|
||||
resultData.worst = _qvmax_(resultData.worst, _latency);
|
||||
#undef _qvmax_
|
||||
#undef _qvmin_
|
||||
}
|
||||
}
|
||||
if (resultData.totalCount > 0 && resultData.failedCount != resultData.totalCount)
|
||||
|
Loading…
Reference in New Issue
Block a user