Skip to content

Commit

Permalink
chore: fix app-cache format
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed May 6, 2024
1 parent d3ca36d commit fbdae39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def set_cache(self, compress_artifacts=False) -> bool:

cache_path.rename(hashed_path)
click.secho(
f"Bench app-cache: caching succeeded for {self.app_name} into {hashed_path.as_posix()}",
f"Bench app-cache: caching succeeded for {self.app_name} as {hashed_path.as_posix()}",
fg="green",
)

Expand Down
6 changes: 3 additions & 3 deletions bench/utils/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,15 +688,15 @@ def cache_list() -> None:
created = datetime.fromtimestamp(stat.st_ctime)
accessed = datetime.fromtimestamp(stat.st_atime)

app = item.name.split("-")[0]
app = item.name.split(".")[0]
tot_items += 1
tot_size += stat.st_size
compressed = item.suffix == ".tgz"

if not printed_header:
click.echo(
f"{'APP':15} "
f"{'FILE':25} "
f"{'FILE':90} "
f"{'SIZE':>13} "
f"{'COMPRESSED'} "
f"{'CREATED':19} "
Expand All @@ -706,7 +706,7 @@ def cache_list() -> None:

click.echo(
f"{app:15} "
f"{item.name:25} "
f"{item.name:90} "
f"{size_mb:10.3f} MB "
f"{str(compressed):10} "
f"{created:%Y-%m-%d %H:%M:%S} "
Expand Down

0 comments on commit fbdae39

Please sign in to comment.