mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
util-profiler: Specify type for template
This commit is contained in:
parent
d0569a2b4d
commit
a5518388ec
1 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ std::chrono::nanoseconds util::profiler::percentile(double_t percentile, bool by
|
|||
|
||||
for (auto kv : copy_timings) {
|
||||
double_t kv_pct = double_t((kv.first - smallest).count()) / double_t(variance.count());
|
||||
if (is_equal(kv_pct, percentile, edge) || (kv_pct > percentile)) {
|
||||
if (is_equal<double_t>(kv_pct, percentile, edge) || (kv_pct > percentile)) {
|
||||
return std::chrono::nanoseconds(kv.first);
|
||||
}
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ std::chrono::nanoseconds util::profiler::percentile(double_t percentile, bool by
|
|||
double_t percentile_last = double_t(accu_calls_last) / double_t(calls);
|
||||
double_t percentile_now = double_t(accu_calls_now) / double_t(calls);
|
||||
|
||||
if (is_equal(percentile, percentile_now, edge)
|
||||
if (is_equal<double_t>(percentile, percentile_now, edge)
|
||||
|| ((percentile_last < percentile) && (percentile_now > percentile))) {
|
||||
return std::chrono::nanoseconds(kv.first);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue