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

Show progress bar on long running tasks #4006

Closed
JacksonChen666 opened this issue May 12, 2022 · 5 comments
Closed

Show progress bar on long running tasks #4006

JacksonChen666 opened this issue May 12, 2022 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@JacksonChen666
Copy link

currently, reclaiming space on a disk image only shows a spinner.

there's no indication of progress happening, which doesn't assure the user progress is being made (or how much is done).

@JacksonChen666 JacksonChen666 added the enhancement New feature or request label May 12, 2022
@osy
Copy link
Contributor

osy commented May 12, 2022

This is unlikely to be fixed because QEMU does not provide progress.

@JacksonChen666
Copy link
Author

JacksonChen666 commented May 12, 2022 via email

@JacksonChen666
Copy link
Author

JacksonChen666 commented May 12, 2022 via email

@osy
Copy link
Contributor

osy commented May 12, 2022

Hmm, if they have a progress bar it should be possible to capture it and convert it into a number.

@JacksonChen666
Copy link
Author

well, it's actually just a number, not a progress bar.
i think parsing implementation would be easy, but i'm not sure about the UI part.

(also, each new line shows up as ^M on neovim on macOS, just making note of that)

example output
    (0.00/100%)
    (1.01/100%)
    (2.03/100%)
    (3.05/100%)
    (4.05/100%)
    (5.07/100%)
    (6.08/100%)
    (7.09/100%)
    (8.09/100%)
    (9.09/100%)
    (10.10/100%)
    (11.12/100%)
    (12.12/100%)
    (13.13/100%)
    (14.14/100%)
    (15.16/100%)
    (16.17/100%)
    (17.19/100%)
    (18.21/100%)
    (19.22/100%)
    (20.24/100%)
    (21.25/100%)
    (22.26/100%)
    (23.28/100%)
    (24.28/100%)
    (25.29/100%)
    (26.32/100%)
    (27.32/100%)
    (28.33/100%)
    (29.34/100%)
    (30.35/100%)
    (31.36/100%)
    (32.38/100%)
    (33.39/100%)
    (34.41/100%)
    (35.42/100%)
    (36.43/100%)
    (37.45/100%)
    (38.45/100%)
    (39.46/100%)
    (40.47/100%)
    (41.48/100%)
    (42.48/100%)
    (43.50/100%)
    (44.52/100%)
    (45.53/100%)
    (46.56/100%)
    (47.58/100%)
    (48.58/100%)
    (49.60/100%)
    (50.61/100%)
    (51.62/100%)
    (52.62/100%)
    (53.63/100%)
    (54.65/100%)
    (55.66/100%)
    (56.67/100%)
    (57.67/100%)
    (58.67/100%)
    (59.68/100%)
    (60.69/100%)
    (61.70/100%)
    (62.71/100%)
    (63.72/100%)
    (64.73/100%)
    (65.73/100%)
    (66.74/100%)
    (67.75/100%)
    (68.75/100%)
    (69.75/100%)
    (70.78/100%)
    (71.80/100%)
    (72.81/100%)
    (73.81/100%)
    (74.82/100%)
    (75.83/100%)
    (76.84/100%)
    (77.84/100%)
    (78.85/100%)
    (79.88/100%)
    (80.88/100%)
    (81.90/100%)
    (82.91/100%)
    (83.92/100%)
    (84.93/100%)
    (85.93/100%)
    (86.95/100%)
    (87.97/100%)
    (89.00/100%)
    (90.01/100%)
    (91.01/100%)
    (92.02/100%)
    (93.03/100%)
    (94.03/100%)
    (95.04/100%)
    (96.06/100%)
    (97.07/100%)
    (98.08/100%)
    (99.08/100%)
    (100.00/100%)
    (100.00/100%)

@osy osy added this to the Future milestone May 12, 2022
@osy osy changed the title show progress on reclaiming space Show progress bar on long running tasks Sep 27, 2023
@osy osy modified the milestones: Future, v4.5 Apr 30, 2024
@osy osy closed this as completed in 5fc988f Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants