mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-04-09 17:40:17 +00:00
fix(external): fix_timestamp
current timestamp digits counting
This commit is contained in:
parent
24d46e4615
commit
13ea4d9e97
2
src/arcaea_offline/external/arcaea/common.py
vendored
2
src/arcaea_offline/external/arcaea/common.py
vendored
@ -31,7 +31,7 @@ def fix_timestamp(timestamp: int) -> Union[int, None]:
|
||||
if digits < 5:
|
||||
return None
|
||||
timestamp_str = str(timestamp)
|
||||
current_timestamp_digits = int(math.log10(int(time.time() / 1000))) + 1
|
||||
current_timestamp_digits = int(math.log10(int(time.time()))) + 1
|
||||
timestamp_str = timestamp_str.ljust(current_timestamp_digits, "0")
|
||||
return int(timestamp_str, 10)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user