2019-03-23 07:43:40 +01:00
|
|
|
--- src/chart1.cpp 2019-03-23 02:25:59.000000000 +0100
|
|
|
|
+++ - 2019-03-29 07:24:46.107362311 +0100
|
|
|
|
@@ -8002,7 +8002,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-
|
|
|
|
+#ifdef __GLIBC__
|
|
|
|
struct mallinfo mi;
|
2018-11-27 14:53:22 +01:00
|
|
|
|
2019-03-23 07:43:40 +01:00
|
|
|
mi = mallinfo();
|
|
|
|
@@ -8018,11 +8018,11 @@
|
|
|
|
//printf("Total free space (fordblks): %d\n", mi.fordblks);
|
|
|
|
//printf("Topmost releasable block (keepcost): %d\n", mi.keepcost);
|
2018-11-27 14:53:22 +01:00
|
|
|
|
2019-03-23 07:43:40 +01:00
|
|
|
- printf("\n");
|
|
|
|
|
|
|
|
if(mem_used)
|
|
|
|
*mem_used = mi.uordblks / 1024;
|
|
|
|
-
|
|
|
|
+#endif
|
|
|
|
+ printf("\n");
|
|
|
|
//printf("mem_used (Mb): %d\n", *mem_used / 1024);
|
|
|
|
return true;
|
|
|
|
#endif /* linux */
|