diff options
Diffstat (limited to 'sysutils/gnome-system-monitor/files/patch-src_load-graph.cpp')
-rw-r--r-- | sysutils/gnome-system-monitor/files/patch-src_load-graph.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sysutils/gnome-system-monitor/files/patch-src_load-graph.cpp b/sysutils/gnome-system-monitor/files/patch-src_load-graph.cpp index e57a2170425e..9b934be3ddb8 100644 --- a/sysutils/gnome-system-monitor/files/patch-src_load-graph.cpp +++ b/sysutils/gnome-system-monitor/files/patch-src_load-graph.cpp @@ -1,11 +1,11 @@ --- src/load-graph.cpp.orig 2008-01-14 23:43:43.000000000 -0600 +++ src/load-graph.cpp 2008-01-14 23:44:15.000000000 -0600 -@@ -501,7 +501,7 @@ - // e.g: ceil(100.5 KiB) = 101 KiB = 101 * 2**(1 * 10) - // where base10 = 1, coef10 = 101, pow2 = 16 +@@ -412,7 +412,7 @@ + // e.g: ceil(100.5 KiB) = 101 KiB = 101 * 2**(1 * 10) + // where base10 = 1, coef10 = 101, pow2 = 16 -- unsigned pow2 = std::floor(log2(new_max)); -+ unsigned pow2 = std::floor(log(new_max) / log(2)); - unsigned base10 = pow2 / 10; - unsigned coef10 = std::ceil(new_max / double(1UL << (base10 * 10))); - g_assert(new_max <= (coef10 * (1UL << (base10 * 10)))); +- unsigned pow2 = std::floor(log2(new_max)); ++ unsigned pow2 = std::floor(log(new_max) / log(2)); + unsigned base10 = pow2 / 10; + unsigned coef10 = std::ceil(new_max / double(1UL << (base10 * 10))); + g_assert(new_max <= (coef10 * (1UL << (base10 * 10)))); |