Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Approximate the amount of space freed during backup rotation #56

Merged
merged 1 commit into from
Sep 21, 2024

Conversation

malor
Copy link
Member

@malor malor commented Sep 17, 2024

The current output is somewhat hard to read because it displays the size in bytes.

Before:

Sep 17 03:00:02 xsnippet python3[2230826]: Used space: 30 files, 133721164 bytes
Sep 17 03:00:02 xsnippet python3[2230826]: Freed space: 1 files, 4455144 bytes

After:

Sep 17 03:00:02 xsnippet python3[2230826]: Used space: 30 files, 127.5 MiB
Sep 17 03:00:02 xsnippet python3[2230826]: Freed space: 1 files, 4.2 MiB

The current output is somewhat hard to read because it displays the
size in bytes.

Before:

```
Sep 17 03:00:02 xsnippet python3[2230826]: Used space: 30 files, 133721164 bytes
Sep 17 03:00:02 xsnippet python3[2230826]: Freed space: 1 files, 4455144 bytes
```

After:

```
Sep 17 03:00:02 xsnippet python3[2230826]: Used space: 30 files, 127.5 MiB
Sep 17 03:00:02 xsnippet python3[2230826]: Freed space: 1 files, 4.2 MiB
```
@malor malor requested a review from ikalnytskyi September 17, 2024 21:28
@malor malor merged commit a8b2356 into master Sep 21, 2024
3 checks passed
@malor malor deleted the backups branch September 21, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants