From 5ebcfa909cab13602efdbeaf19b35f67b8b9979a Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 4 May 2022 17:00:25 +0100 Subject: [PATCH] redfish: Use actual FuProgress steps for ->cleanup() --- plugins/redfish/fu-plugin-redfish.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/redfish/fu-plugin-redfish.c b/plugins/redfish/fu-plugin-redfish.c index 3af6f14db..a21c94ac4 100644 --- a/plugins/redfish/fu-plugin-redfish.c +++ b/plugins/redfish/fu-plugin-redfish.c @@ -444,12 +444,11 @@ fu_plugin_redfish_cleanup(FuPlugin *self, /* progress */ fu_progress_set_id(progress, G_STRLOC); - fu_progress_add_flag(progress, FU_PROGRESS_FLAG_GUESSED); fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_BUSY, 1); - fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 24); - fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 25); - fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 25); - fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_BUSY, 50); + fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 5); + fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 67); + fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 18); + fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_BUSY, 9); /* ask the BMC to reboot */ json_builder_begin_object(builder);