[gnome-usage: 1/2] Use libgtop mem.user that reflects how much RAM is used by users applications.



commit f18bebc624d991d2dff5273cbfcf5c378be70077
Author: Ben <bdejean gmail com>
Date:   Mon Oct 16 19:12:50 2017 +0000

    Use libgtop mem.user that reflects how much RAM is used by users applications.

 src/memory-monitor.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/memory-monitor.vala b/src/memory-monitor.vala
index 9183c41..4327626 100644
--- a/src/memory-monitor.vala
+++ b/src/memory-monitor.vala
@@ -32,7 +32,7 @@ namespace Usage
             /* Memory */
             GTop.Mem mem;
             GTop.get_mem (out mem);
-            ram_usage = mem.used - mem.buffer - mem.cached;
+            ram_usage = mem.user;
             ram_total = mem.total;
 
             /* Swap */


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