Skip to content

Commit

Permalink
upload example gif
Browse files Browse the repository at this point in the history
  • Loading branch information
buremba committed Aug 5, 2024
1 parent 519ed22 commit 7af422e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ And then:
```bash
universql
--network=host \
--mount type=bind,source=,target=/usr/app \
--mount type=bind,source=<>,target=/usr/app \
snowflake --account-url lt51601.europe-west2.gcp
```

Expand Down Expand Up @@ -134,6 +134,8 @@ Options:
--help Show this message and exit.
```

[![Interactive CLI](resources/how_to_use.png)](https://benchmark.clickhouse.com/#eyJzeXN0ZW0iOnsiQWxsb3lEQiI6ZmFsc2UsIkF0aGVuYSAocGFydGl0aW9uZWQpIjpmYWxzZSwiQXRoZW5hIChzaW5nbGUpIjpmYWxzZSwiQXVyb3JhIGZvciBNeVNRTCI6ZmFsc2UsIkF1cm9yYSBmb3IgUG9zdGdyZVNRTCI6ZmFsc2UsIkJ5Q29uaXR5IjpmYWxzZSwiQnl0ZUhvdXNlIjpmYWxzZSwiY2hEQiAoUGFycXVldCwgcGFydGl0aW9uZWQpIjpmYWxzZSwiY2hEQiI6ZmFsc2UsIkNpdHVzIjpmYWxzZSwiQ2xpY2tIb3VzZSBDbG91ZCAoYXdzKSI6ZmFsc2UsIkNsaWNrSG91c2UgQ2xvdWQgKGF3cykgUGFyYWxsZWwgUmVwbGljYXMgT04iOmZhbHNlLCJDbGlja0hvdXNlIENsb3VkIChBenVyZSkiOmZhbHNlLCJDbGlja0hvdXNlIENsb3VkIChBenVyZSkgUGFyYWxsZWwgUmVwbGljYSBPTiI6ZmFsc2UsIkNsaWNrSG91c2UgQ2xvdWQgKEF6dXJlKSBQYXJhbGxlbCBSZXBsaWNhcyBPTiI6ZmFsc2UsIkNsaWNrSG91c2UgQ2xvdWQgKGdjcCkiOmZhbHNlLCJDbGlja0hvdXNlIENsb3VkIChnY3ApIFBhcmFsbGVsIFJ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1ZSwiZGVkaWNhdGVkIjp0cnVlfSwibWV0cmljIjoiY29sZCIsInF1ZXJpZXMiOlt0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlXX0=)

## Access to Storage

### Polaris
Expand Down
Binary file added resources/how_to_use.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions universql/lake/fsspec_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ def get_friendly_disk_usage(storage: str) -> str:
if first_free is None:
first_free = usage.free
current_usage = get_total_directory_size(storage)
message = f"(usage {sizeof_fmt(current_usage)} free {sizeof_fmt(usage.free)} {int(100 - usage.percent)}%)"
message = f"{sizeof_fmt(current_usage)} used {sizeof_fmt(usage.free)} available"
if last_free is not None:
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: {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 7af422e

Please sign in to comment.