Skip to content

Commit

Permalink
Merge pull request #1508 from gcmoreira/linux_kmsg_fix_1502_1496_1364
Browse files Browse the repository at this point in the history
linux: kmsg plugin: Fix f'string bug introduced in #1502
  • Loading branch information
ikelos authored Jan 3, 2025
2 parents dce5ff1 + d2bb5c9 commit 1e2ca8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volatility3/framework/plugins/linux/kmsg.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def nsec_to_sec_str(self, nsec: int) -> str:
# 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
Expand Down

0 comments on commit 1e2ca8f

Please sign in to comment.