[gnome-disk-utility/gnome-3-8] Use right size when calculating error-percentage when creating disk image
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/gnome-3-8] Use right size when calculating error-percentage when creating disk image
- Date: Sun, 2 Jun 2013 20:08:18 +0000 (UTC)
commit 572afc10021403c28a6bc037161325ac65678191
Author: David Zeuthen <zeuthen gmail com>
Date: Sun Jun 2 13:06:32 2013 -0700
Use right size when calculating error-percentage when creating disk image
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/disks/gducreatediskimagedialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/disks/gducreatediskimagedialog.c b/src/disks/gducreatediskimagedialog.c
index 8d1e092..8e81c85 100644
--- a/src/disks/gducreatediskimagedialog.c
+++ b/src/disks/gducreatediskimagedialog.c
@@ -475,7 +475,7 @@ on_success (gpointer user_data)
/* Translators: Primary message in dialog shown if some
data was unreadable while creating a disk image */
_("Unrecoverable read errors while creating disk image"));
s = g_format_size (data->num_error_bytes);
- percentage = 100.0 * ((gdouble) data->num_error_bytes) / ((gdouble) gdu_estimator_get_completed_bytes
(data->estimator));
+ percentage = 100.0 * ((gdouble) data->num_error_bytes) / ((gdouble) gdu_estimator_get_target_bytes
(data->estimator));
gtk_message_dialog_format_secondary_markup (GTK_MESSAGE_DIALOG (dialog),
/* Translators: Secondary message in dialog shown if some
data was unreadable while creating a disk image.
* The %f is the percentage of unreadable data (ex. 13.0).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]