Skip to content

Commit

Permalink
Minor nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
dbutenhof committed Mar 6, 2024
1 parent cdbc009 commit 8b32bc6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/pbench/cli/server/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ def report_cache(tree: CacheManager):
unpacked_count += 1
unpacked_times += metrics["count"]
speedcomp.add(dsname, metrics["min"], metrics["max"])
if size and metrics:
stream_fast = size / metrics["min"] / MEGABYTE_FP
stream_slow = size / metrics["max"] / MEGABYTE_FP
streamcomp.add(dsname, stream_slow, stream_fast)
else:
stream_unpack_skipped += 1
if size:
stream_fast = size / metrics["min"] / MEGABYTE_FP
stream_slow = size / metrics["max"] / MEGABYTE_FP
streamcomp.add(dsname, stream_slow, stream_fast)
else:
stream_unpack_skipped += 1
oldest = datetime.datetime.fromtimestamp(agecomp.min, datetime.timezone.utc)
newest = datetime.datetime.fromtimestamp(agecomp.max, datetime.timezone.utc)
click.echo("Cache report:")
Expand Down

0 comments on commit 8b32bc6

Please sign in to comment.