mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 21:36:16 +00:00
trivial: Fix the progress steps when dumping firmware
In most cases the firmware dump is going to take a *lot* longer than the engine startup.
This commit is contained in:
parent
84217074b0
commit
17156f13d5
@ -1036,8 +1036,9 @@ fu_util_firmware_dump(FuUtilPrivate *priv, gchar **values, GError **error)
|
|||||||
|
|
||||||
/* progress */
|
/* progress */
|
||||||
fu_progress_set_id(priv->progress, G_STRLOC);
|
fu_progress_set_id(priv->progress, G_STRLOC);
|
||||||
fu_progress_add_step(priv->progress, FWUPD_STATUS_LOADING, 95, "start-engine");
|
fu_progress_add_flag(priv->progress, FU_PROGRESS_FLAG_NO_PROFILE);
|
||||||
fu_progress_add_step(priv->progress, FWUPD_STATUS_DEVICE_READ, 5, NULL);
|
fu_progress_add_step(priv->progress, FWUPD_STATUS_LOADING, 5, "start-engine");
|
||||||
|
fu_progress_add_step(priv->progress, FWUPD_STATUS_DEVICE_READ, 95, NULL);
|
||||||
|
|
||||||
/* invalid args */
|
/* invalid args */
|
||||||
if (g_strv_length(values) == 0) {
|
if (g_strv_length(values) == 0) {
|
||||||
@ -1110,8 +1111,9 @@ fu_util_firmware_read(FuUtilPrivate *priv, gchar **values, GError **error)
|
|||||||
|
|
||||||
/* progress */
|
/* progress */
|
||||||
fu_progress_set_id(priv->progress, G_STRLOC);
|
fu_progress_set_id(priv->progress, G_STRLOC);
|
||||||
fu_progress_add_step(priv->progress, FWUPD_STATUS_LOADING, 95, "start-engine");
|
fu_progress_add_flag(priv->progress, FU_PROGRESS_FLAG_NO_PROFILE);
|
||||||
fu_progress_add_step(priv->progress, FWUPD_STATUS_DEVICE_READ, 5, NULL);
|
fu_progress_add_step(priv->progress, FWUPD_STATUS_LOADING, 5, "start-engine");
|
||||||
|
fu_progress_add_step(priv->progress, FWUPD_STATUS_DEVICE_READ, 95, NULL);
|
||||||
|
|
||||||
/* invalid args */
|
/* invalid args */
|
||||||
if (g_strv_length(values) == 0) {
|
if (g_strv_length(values) == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user