Skip to content

Commit

Permalink
fix project info
Browse files Browse the repository at this point in the history
  • Loading branch information
buremba committed Aug 5, 2024
1 parent 3d87058 commit 86e490a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tool.poetry]
name = "universql"
version = "0.1.0"
version = "0.1"
description = ""
authors = ["Burak Kabakcı <[email protected]>"]
readme = "README.md"
license = "Apache 2.0"
keywords = ["dbt", "server", "streamlit", "git", "refine", "data-app", "snowflake"]
documentation = "https://github.com/jinjat-data/jinjat"
repository = "https://github.com/jinjat-data/jinjat"
documentation = "https://github.com/buremba/universql"
repository = "https://github.com/buremba/universql"

[tool.poetry.dependencies]
python = "^3.11"
Expand Down
7 changes: 3 additions & 4 deletions universql/lake/fsspec_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,14 @@ def pprint_disk_usage(storage: str) -> str:
usage = psutil.disk_usage(storage)
if first_free is None:
first_free = usage.free
message = f"(free {sizeof_fmt(usage.free)})"
message = f"(free {sizeof_fmt(usage.free)} {int(100 - usage.percent)}%)"
if last_free is not None:
message += f" (remaining disk quota {int(100 - usage.percent)}%)"
downloaded_recently = last_free - usage.free
if downloaded_recently > 10_000_000:
downloaded_since_start = first_free - usage.free
if downloaded_recently != downloaded_since_start:
message += f" (delta since previous log: {sizeof_fmt(downloaded_recently)}))"
message += f" (delta since start: {sizeof_fmt(downloaded_since_start)}))"
message += f" (delta: {sizeof_fmt(downloaded_recently)})"
message += f" (delta since start: {sizeof_fmt(downloaded_since_start)})"

last_free = usage.free
return message
Expand Down

0 comments on commit 86e490a

Please sign in to comment.