Merge lp:~stebalien/gnome-disk-utility/fix-units into lp:~ubuntu-desktop/gnome-disk-utility/ubuntu

Proposed by Steven
Status: Merged
Merged at revision: 20
Proposed branch: lp:~stebalien/gnome-disk-utility/fix-units
Merge into: lp:~ubuntu-desktop/gnome-disk-utility/ubuntu
Diff against target: 63 lines (+42/-1)
3 files modified
debian/changelog (+7/-0)
debian/patches/05_change_speed_units_from_MB_to_Mb.patch (+34/-0)
debian/patches/series (+1/-1)
To merge this branch: bzr merge lp:~stebalien/gnome-disk-utility/fix-units
Reviewer Review Type Date Requested Status
Jeremy Bícha Approve
Review via email: mp+88283@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Thanks very much for submitting this!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-12-06 21:30:07 +0000
3+++ debian/changelog 2012-01-11 22:40:29 +0000
4@@ -1,3 +1,10 @@
5+gnome-disk-utility (3.0.2-2ubuntu3) precise; urgency=low
6+
7+ * debian/patches/05_change_speed_units_from_MB_to_Mb.patch:
8+ - Change {G,M,K}B/s to {G,M,K}b/s (LP: #631638)
9+
10+ -- Steven Allen <steb@mit.edu> Wed, 11 Jan 2012 17:07:43 -0500
11+
12 gnome-disk-utility (3.0.2-2ubuntu2) precise; urgency=low
13
14 * debian/rules: we need to actually install /usr/lib/gnome-disk-utility
15
16=== added file 'debian/patches/05_change_speed_units_from_MB_to_Mb.patch'
17--- debian/patches/05_change_speed_units_from_MB_to_Mb.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/05_change_speed_units_from_MB_to_Mb.patch 2012-01-11 22:40:29 +0000
19@@ -0,0 +1,34 @@
20+From: Robert Roth <robert.roth.off@gmail.com>
21+Subject: [PATCH] Fix connection speed unit to use Mb instead of MB(bug 663272)
22+Origin: other, http://bugzilla-attachments.gnome.org/attachment.cgi?id=200556
23+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=663272
24+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gnome-disk-utility/+bug/631638
25+
26+---
27+ src/gdu/gdu-util.c | 6 +++---
28+ 1 files changed, 3 insertions(+), 3 deletions(-)
29+
30+diff --git a/src/gdu/gdu-util.c b/src/gdu/gdu-util.c
31+index e27c331..c6241d7 100644
32+--- a/src/gdu/gdu-util.c
33++++ b/src/gdu/gdu-util.c
34+@@ -885,13 +885,13 @@ gdu_util_get_speed_for_display (guint64 speed)
35+
36+ if (speed < 1000 * 1000) {
37+ displayed_speed = (double) speed / 1000.0;
38+- str = g_strdup_printf (_("%.1f kB/s"), displayed_speed);
39++ str = g_strdup_printf (_("%.1f kb/s"), displayed_speed);
40+ } else if (speed < 1000 * 1000 * 1000) {
41+ displayed_speed = (double) speed / 1000.0 / 1000.0;
42+- str = g_strdup_printf (_("%.1f MB/s"), displayed_speed);
43++ str = g_strdup_printf (_("%.1f Mb/s"), displayed_speed);
44+ } else {
45+ displayed_speed = (double) speed / 1000.0 / 1000.0 / 1000.0;
46+- str = g_strdup_printf (_("%.1f GB/s"), displayed_speed);
47++ str = g_strdup_printf (_("%.1f Gb/s"), displayed_speed);
48+ }
49+
50+ return str;
51+--
52+1.7.5.4
53+
54
55=== modified file 'debian/patches/series'
56--- debian/patches/series 2011-07-11 14:01:00 +0000
57+++ debian/patches/series 2012-01-11 22:40:29 +0000
58@@ -3,4 +3,4 @@
59 01_delay_autostart.patch
60 02_lpi.patch
61 04_nodisplay_autostart.patch
62-
63+05_change_speed_units_from_MB_to_Mb.patch

Subscribers

People subscribed via source and target branches

to all changes: