[gnome-system-monitor] [PATCH] Fixed unsigned overflow error (use guint64 instead of unsigned). https://bugzilla.gnome.or
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] [PATCH] Fixed unsigned overflow error (use guint64 instead of unsigned). https://bugzilla.gnome.or
- Date: Fri, 10 Aug 2012 16:06:49 +0000 (UTC)
commit 74ba377a5a7d4787595e1b46c1e880426584a2fd
Author: Robert Roth <robert roth off gmail com>
Date: Fri Aug 10 19:06:29 2012 +0300
[PATCH] Fixed unsigned overflow error (use guint64 instead of
unsigned).
https://bugzilla.gnome.org/show_bug.cgi?id=681553
src/load-graph.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index 849418c..711b814 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -126,7 +126,7 @@ void draw_background(LoadGraph *graph) {
gdk_cairo_set_source_color (cr, &style->fg[GTK_STATE_NORMAL]);
if (graph->type == LOAD_GRAPH_NET) {
// operation orders matters so it's 0 if i == num_bars
- unsigned rate = graph->net.max - (i * graph->net.max / num_bars);
+ guint64 rate = graph->net.max - (i * graph->net.max / num_bars);
const std::string caption(procman::format_network_rate(rate, graph->net.max));
pango_layout_set_text (layout, caption.c_str(), -1);
pango_layout_get_extents (layout, NULL, &extents);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]