Change type so that memory values are correct (Fixes #65)

This commit is contained in:
John Woltman
2022-08-11 11:17:45 -04:00
committed by Gaël Bonithon
parent 86c8586a63
commit 0a155096e5

View File

@@ -30,7 +30,7 @@ get_memory_usage (guint64 *memory_total, guint64 *memory_available, guint64 *mem
{ {
FILE *file; FILE *file;
gchar *filename = "/proc/meminfo"; gchar *filename = "/proc/meminfo";
gulong mem_total = 0, guint64 mem_total = 0,
mem_free = 0, mem_free = 0,
mem_avail = 0, mem_avail = 0,
mem_cached = 0, mem_cached = 0,