`sysdeps.flags' should be a mask telling which fields are valid,

so we set it to `(sysdeps.features | (1 << GLIBTOP_SYSDEPS_FEATURES))'.
This commit is contained in:
Martin Baulig
1998-11-02 21:09:11 +00:00
parent a6f7f0259e
commit 4371bc81c9

View File

@@ -124,6 +124,8 @@ handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
memcpy (&resp->u.sysdeps, &server->sysdeps,
sizeof (glibtop_sysdeps));
resp->u.sysdeps.features = glibtop_server_features;
resp->u.sysdeps.flags = glibtop_server_features |
(1 << GLIBTOP_SYSDEPS_FEATURES);
resp->offset = _offset_union (sysdeps);
break;
#if GLIBTOP_SUID_CPU