[gnome-system-monitor] Do not change the scale on resize, only stretch it. https://bugzilla.gnome.org/show_bug.cgi?id=60557



commit c735f76249dc8555110f12bd32ed2158c4a3077c
Author: Robert Roth <robert roth off gmail com>
Date:   Tue Oct 2 03:02:14 2012 +0300

    Do not change the scale on resize, only stretch it.
    https://bugzilla.gnome.org/show_bug.cgi?id=605571

 src/load-graph.cpp |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index d3cc9dd..c9e3fcd 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -484,10 +484,6 @@ net_scale (LoadGraph *graph, guint64 din, guint64 dout)
         guint64 factor10 = std::pow(10.0, std::floor(std::log10(coef10)));
         coef10 = std::ceil(coef10 / double(factor10)) * factor10;
 
-        // then make coef10 divisible by num_bars
-        if (coef10 % graph->num_bars() != 0)
-            coef10 = coef10 + (graph->num_bars() - coef10 % graph->num_bars());
-        g_assert(coef10 % graph->num_bars() == 0);
         new_max = coef10 * (G_GUINT64_CONSTANT(1) << guint64(base10 * 10));
         procman_debug("bak %" G_GUINT64_FORMAT " new_max %" G_GUINT64_FORMAT
                       "pow2 %" G_GUINT64_FORMAT " coef10 %" G_GUINT64_FORMAT,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]