[gnome-system-monitor] Memmaps: fix compare function
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Memmaps: fix compare function
- Date: Sun, 18 Aug 2013 16:26:26 +0000 (UTC)
commit ed696eba1438231e797774510a3449140f31fc9c
Author: Stefano Facchini <stefano facchini gmail com>
Date: Sun Aug 18 18:21:39 2013 +0200
Memmaps: fix compare function
less-then and not-greater-than are not the same...
https://bugzilla.gnome.org/show_bug.cgi?id=611735
src/memmaps.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/memmaps.cpp b/src/memmaps.cpp
index 6eeb35f..f75b2f1 100644
--- a/src/memmaps.cpp
+++ b/src/memmaps.cpp
@@ -186,7 +186,7 @@ struct glibtop_map_entry_cmp
bool operator()(const guint64 &start, const glibtop_map_entry &a) const
{
- return not (*this)(a, start);
+ return start < a.start;
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]