diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/gnome-system-monitor/distinfo | 3 | ||||
-rw-r--r-- | sysutils/gnome-system-monitor/patches/patch-ac | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/sysutils/gnome-system-monitor/distinfo b/sysutils/gnome-system-monitor/distinfo index 04db08cb178..5967bf466a6 100644 --- a/sysutils/gnome-system-monitor/distinfo +++ b/sysutils/gnome-system-monitor/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.12 2009/05/26 19:11:55 wiz Exp $ +$NetBSD: distinfo,v 1.13 2009/09/20 19:55:40 sno Exp $ SHA1 (gnome-system-monitor-2.26.2.tar.bz2) = a24d042ac3eefc77970a2ebdf56a94d77df96e34 RMD160 (gnome-system-monitor-2.26.2.tar.bz2) = 31cc3c0e531275254bf9ba33cb94ad5258ea936c Size (gnome-system-monitor-2.26.2.tar.bz2) = 2188963 bytes SHA1 (patch-aa) = 46ed47a4f87551a30d572d931fb7bc9114850192 SHA1 (patch-ab) = d0398e6309aa979ef270656ba61eac5d8f47aca2 +SHA1 (patch-ac) = d9b786191c064c38576f2650376d1cc7a15fe81b diff --git a/sysutils/gnome-system-monitor/patches/patch-ac b/sysutils/gnome-system-monitor/patches/patch-ac new file mode 100644 index 00000000000..5366e9d1358 --- /dev/null +++ b/sysutils/gnome-system-monitor/patches/patch-ac @@ -0,0 +1,17 @@ +$NetBSD: patch-ac,v 1.1 2009/09/20 19:55:40 sno Exp $ + +--- src/load-graph.cpp.orig 2009-09-20 21:16:41.000000000 +0200 ++++ src/load-graph.cpp 2009-09-20 21:18:27.000000000 +0200 +@@ -395,8 +395,11 @@ + // + // e.g: ceil(100.5 KiB) = 101 KiB = 101 * 2**(1 * 10) + // where base10 = 1, coef10 = 101, pow2 = 16 +- ++#ifdef __FreeBSD__ ++ unsigned pow2 = std::floor(log(new_max) / log(2)); ++#else + unsigned pow2 = std::floor(log2(new_max)); ++#endif + unsigned base10 = pow2 / 10; + unsigned coef10 = std::ceil(new_max / double(1UL << (base10 * 10))); + g_assert(new_max <= (coef10 * (1UL << (base10 * 10)))); |