diff --git a/pyproject.toml b/pyproject.toml index ec3f067..0d8844b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,13 @@ [tool.poetry] name = "universql" -version = "0.1.0" +version = "0.1" description = "" authors = ["Burak Kabakcı "] 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" diff --git a/universql/lake/fsspec_util.py b/universql/lake/fsspec_util.py index 29bc055..e57db8b 100644 --- a/universql/lake/fsspec_util.py +++ b/universql/lake/fsspec_util.py @@ -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