diff --git a/LunaTranslator/LunaTranslator/myutils/post.py b/LunaTranslator/LunaTranslator/myutils/post.py index 75bdbdea..33717d96 100644 --- a/LunaTranslator/LunaTranslator/myutils/post.py +++ b/LunaTranslator/LunaTranslator/myutils/post.py @@ -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 diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index ba57e135..7eb037c4 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -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)