Skip to content

Commit

Permalink
Move downloading message also to measure_speed helper
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed May 12, 2024
1 parent fe61f53 commit 9ff10c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions plexfuse/measure_speed.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@contextmanager
def measure_speed(part: Path):
start = monotonic()
print(f"Downloading: {part}")
yield
now = monotonic()
file_size = part.stat().st_size
Expand Down
1 change: 0 additions & 1 deletion plexfuse/vfs/ChunkedFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def cache_path(self, path: str, chunk_number: int):
cache_path = file.parent / filename

if not cache_path.exists():
print(f"Downloading: {cache_path}")
base_offset = self.base_offset(chunk_number)

with measure_speed(cache_path):
Expand Down

0 comments on commit 9ff10c1

Please sign in to comment.