ports/sysutils/mate-system-monitor/files/patch-src_load-graph.cpp
Koop Mast b18513c396 Update MATE DE to 1.10.0.
This MATE is still build agains GTK+2.
Sort USES here and there.
Replace mate-dialogs with zenity and mate-calc with galculator.

This update fixes the following PR's:
PR:		193942, 191885
Submitted by:	Gustau Perez <gustau.perez@gmail.com> via Gnome devel repo
Obtained from:	gnome devel repo.
2015-07-27 20:19:33 +00:00

11 lines
587 B
C++

--- src/load-graph.cpp.orig 2015-01-23 09:15:58.000000000 +0100
+++ src/load-graph.cpp 2015-04-06 20:28:18.053368000 +0200
@@ -470,7 +470,7 @@
// e.g: ceil(100.5 KiB) = 101 KiB = 101 * 2**(1 * 10)
// where base10 = 1, coef10 = 101, pow2 = 16
- guint64 pow2 = std::floor(log2(new_max));
+ guint64 pow2 = std::floor(log(new_max) / log(2));
guint64 base10 = pow2 / 10.0;
guint64 coef10 = std::ceil(new_max / double(G_GUINT64_CONSTANT(1) << (base10 * 10)));
g_assert(new_max <= (coef10 * (G_GUINT64_CONSTANT(1) << (base10 * 10))));