Skip to content

Commit

Permalink
info: report corrupted file
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Nov 29, 2023
1 parent 521d865 commit a2186fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyulog/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

def show_info(ulog, verbose):
"""Show general information from an ULog"""

if ulog.file_corruption:
print("Warning: file has data corruption(s)")

m1, s1 = divmod(int(ulog.start_timestamp/1e6), 60)
h1, m1 = divmod(m1, 60)
m2, s2 = divmod(int((ulog.last_timestamp - ulog.start_timestamp)/1e6), 60)
Expand Down

0 comments on commit a2186fc

Please sign in to comment.