forgotten patch

This commit is contained in:
Matthias Clasen 2011-05-12 17:08:23 -04:00
parent 02c6353ab9
commit a6d066deb9

26
format.patch Normal file
View File

@ -0,0 +1,26 @@
diff -up gnome-system-monitor-3.1.1/src/load-graph.cpp.format gnome-system-monitor-3.1.1/src/load-graph.cpp
--- gnome-system-monitor-3.1.1/src/load-graph.cpp.format 2011-05-12 16:55:55.816792353 -0400
+++ gnome-system-monitor-3.1.1/src/load-graph.cpp 2011-05-12 16:59:03.419446997 -0400
@@ -433,11 +433,11 @@ net_scale (LoadGraph *g, guint64 din, gu
g_assert(coef10 % g->num_bars() == 0);
new_max = coef10 * (1UL << guint64(base10 * 10));
- procman_debug("bak %lu new_max %lu pow2 %lu coef10 %lu", bak_max, new_max, pow2, coef10);
+ procman_debug("bak %lu new_max " G_GUINT64_FORMAT " pow2 " G_GUINT64_FORMAT " coef10 " G_GUINT64_FORMAT, bak_max, new_max, pow2, coef10);
}
if (bak_max > new_max) {
- procman_debug("overflow detected: bak=%lu new=%lu", bak_max, new_max);
+ procman_debug("overflow detected: bak=" G_GUINT64_FORMAT " new=" G_GUIN64_FORMAT, bak_max, new_max);
new_max = bak_max;
}
@@ -455,7 +455,7 @@ net_scale (LoadGraph *g, guint64 din, gu
}
}
- procman_debug("rescale dmax = %lu max = %lu new_max = %lu", dmax, g->net.max, new_max);
+ procman_debug("rescale dmax = " G_GUINT64_FORMAT " max = " G_GUINT64_FORMAT " new_max = " G_GUINT64_FORMAT, dmax, g->net.max, new_max);
g->net.max = new_max;