[nautilus] file-operations: fix deletion rate
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-operations: fix deletion rate
- Date: Fri, 22 Apr 2016 13:56:36 +0000 (UTC)
commit fe0a16a34c761f186a656aff3149c92063da47d7
Author: Neil Herald <neil herald gmail com>
Date: Sun Apr 17 17:22:42 2016 +0100
file-operations: fix deletion rate
The deletion rate shown to the user is wrong, it's coming out as a
massive number. An earlier fix corrected the deletion rate used to
determine if the message should use the plural. This fix is to make the
same change to the value shown to the user.
https://bugzilla.gnome.org/show_bug.cgi?id=759986
libnautilus-private/nautilus-file-operations.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index 1bbdf8e..e25c260 100644
--- a/libnautilus-private/nautilus-file-operations.c
+++ b/libnautilus-private/nautilus-file-operations.c
@@ -1565,15 +1565,16 @@ report_delete_progress (CommonJob *job,
time_left_message = ngettext ("%'d / %'d \xE2\x80\x94 %T left",
"%'d / %'d \xE2\x80\x94 %T left",
seconds_count_format_time_units (remaining_time));
+ transfer_rate += 0.5;
files_per_second_message = ngettext ("(%d file/sec)",
"(%d files/sec)",
- (int)(transfer_rate + 0.5));
+ (int) transfer_rate);
concat_detail = g_strconcat (time_left_message, " ", files_per_second_message, NULL);
details = f (concat_detail,
transfer_info->num_files + 1, source_info->num_files,
remaining_time,
- (int) transfer_rate + 0.5);
+ (int) transfer_rate);
g_free (concat_detail);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]