summaryrefslogtreecommitdiff
path: root/src/load-graph.h
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-03 20:21:33 +0100
committerraveit65 <[email protected]>2020-02-17 13:17:24 +0100
commita50443572b52ace61f442a121d0ecc386c853173 (patch)
tree617242d3b55a76b09fc2a94a9afb7faa10b59ed4 /src/load-graph.h
parent3a223d2f65da06859a6fd1d9e80fa923cfe66d40 (diff)
downloadmate-system-monitor-a50443572b52ace61f442a121d0ecc386c853173.tar.bz2
mate-system-monitor-a50443572b52ace61f442a121d0ecc386c853173.tar.xz
Remove GTimeVal deprecation warning for GLib 2.61.2+
Diffstat (limited to 'src/load-graph.h')
-rw-r--r--src/load-graph.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/load-graph.h b/src/load-graph.h
index 35bb62b..95e841b 100644
--- a/src/load-graph.h
+++ b/src/load-graph.h
@@ -86,7 +86,11 @@ struct LoadGraph {
struct {
guint64 last_in, last_out;
+#if GLIB_CHECK_VERSION(2,61,2)
+ gint64 time;
+#else
GTimeVal time;
+#endif
guint64 max;
unsigned values[NUM_POINTS];
size_t cur;