Skip to content

Commit

Permalink
tools/biopattern: improve the output of biopattern
Browse files Browse the repository at this point in the history
  • Loading branch information
xingfeng2510 authored and yonghong-song committed Oct 8, 2022
1 parent fe8acc4 commit 465f292
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/biopattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ def mkdev(major, minor):
continue

part_name = partitions.get(k.value, "Unknown")
random_percent = int(round(v.random * 100 / total))

print("%-9s %-7s %5d %5d %8d %10d" % (
strftime("%H:%M:%S"),
part_name,
v.random * 100 / total,
v.sequential * 100 / total,
random_percent,
100 - random_percent,
total,
v.bytes / 1024))

Expand Down

0 comments on commit 465f292

Please sign in to comment.