new command to get glibtop_server_features.
* src/server/main.c (GLIBTOP_CMND_SYSDEPS): new command to get glibtop_server_features.
This commit is contained in:
@@ -140,6 +140,11 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (cmnd.command) {
|
switch (cmnd.command) {
|
||||||
|
case GLIBTOP_CMND_SYSDEPS:
|
||||||
|
sysdeps.features = GLIBTOP_SYSDEPS_ALL;
|
||||||
|
glibtop_output (sizeof (glibtop_sysdeps), &sysdeps);
|
||||||
|
glibtop_output (0, NULL);
|
||||||
|
break;
|
||||||
case GLIBTOP_CMND_CPU:
|
case GLIBTOP_CMND_CPU:
|
||||||
#if GLIBTOP_SUID_CPU
|
#if GLIBTOP_SUID_CPU
|
||||||
glibtop_get_cpu__p (&server, &data.cpu);
|
glibtop_get_cpu__p (&server, &data.cpu);
|
||||||
|
Reference in New Issue
Block a user