This commit is contained in:
恍兮惚兮 2024-08-03 21:18:20 +08:00
parent 0db3063829
commit 6c1071c181
2 changed files with 10 additions and 2 deletions

View File

@ -41,7 +41,15 @@ def _2_f(line, args):
else:
cntx += 1
_max = max(dumptime.values())
guesstimes = sorted(dumptime.keys(), key=lambda x: x * (dumptime[x] != _max))[0]
xx = []
for _, _2 in dumptime.items():
if _2 == _max:
xx.append(_)
guesstimes = sorted(xx)
if guesstimes[0] == 1 and len(guesstimes) > 1:
guesstimes = guesstimes[1:]
guesstimes = guesstimes[0]
if keepnodump:
newline = ""
i = 0

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 5)
set(VERSION_MINOR 20)
set(VERSION_PATCH 0)
set(VERSION_PATCH 1)
add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h)