summaryrefslogtreecommitdiff
path: root/lib/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/init.c')
-rw-r--r--lib/init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/init.c b/lib/init.c
index 7fecdc2f..2a521853 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -26,6 +26,8 @@
#include <glibtop/open.h>
#include <glibtop/parameter.h>
#include <glibtop/init_hooks.h>
+#include <glibtop/machine.h>
+
#ifndef DEFAULT_PORT
#define DEFAULT_PORT 42800
@@ -173,6 +175,9 @@ glibtop_init_r (glibtop **server_ptr, unsigned long features, unsigned flags)
/* Do the initialization, but only if not already initialized. */
if ((server->flags & _GLIBTOP_INIT_STATE_INIT) == 0) {
+
+ glibtop_machine_new (server);
+
if (flags & GLIBTOP_FEATURES_EXCEPT)
features = ~features & GLIBTOP_SYSDEPS_ALL;
@@ -221,6 +226,8 @@ glibtop_init_s (glibtop **server_ptr, unsigned long features, unsigned flags)
glibtop *server;
const _glibtop_init_func_t *init_fkt;
+ glibtop_debug("init_s with features=%#0lx and flags=%#0x", features, flags);
+
if (server_ptr == NULL)
return NULL;