linux: fix kmsg fstring bug introduced in #1502

This commit is contained in:
Gustavo Moreira
2025-01-03 10:01:37 +11:00
parent dce5ff1f5c
commit d2bb5c9f31
+1 -1
View File
@@ -149,7 +149,7 @@ class ABCKmsg(ABC):
# This might seem insignificant but it could cause some issues
# when compared with userland tool results or when used in
# timelines.
return f"{nsec / 1000000000}.{(nsec % 1000000000) / 1000:06}"
return f"{nsec // 1000000000}.{(nsec % 1000000000) // 1000:06}"
def get_timestamp_in_sec_str(self, obj) -> str:
# obj could be log, printk_log or printk_info