gnome-system-monitor r2265 - trunk/src
- From: bdejean svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-system-monitor r2265 - trunk/src
- Date: Mon, 7 Jan 2008 09:11:37 +0000 (GMT)
Author: bdejean
Date: Mon Jan 7 09:11:37 2008
New Revision: 2265
URL: http://svn.gnome.org/viewvc/gnome-system-monitor?rev=2265&view=rev
Log:
Fixed percentage in memory and swap labels.
Modified:
trunk/src/load-graph.cpp
Modified: trunk/src/load-graph.cpp
==============================================================================
--- trunk/src/load-graph.cpp (original)
+++ trunk/src/load-graph.cpp Mon Jan 7 09:11:37 2008
@@ -418,7 +418,7 @@
used_text = SI_gnome_vfs_format_file_size_for_display(used);
total_text = SI_gnome_vfs_format_file_size_for_display(total);
// xgettext: 540MiB (53 %) of 1.0 GiB
- text = g_strdup_printf(_("%s (%.1f %%) of %s"), used_text, percent, total_text);
+ text = g_strdup_printf(_("%s (%.1f %%) of %s"), used_text, 100.0 * percent, total_text);
gtk_label_set_text(label, text);
g_free(used_text);
g_free(total_text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]