From b7c19ce5d31a0cd4c505865e8d7aa293367828fa Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 11 Jul 2005 20:29:38 +0000 Subject: [PATCH] add net_info.domain for unix --- src/sigar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sigar.c b/src/sigar.c index 18048532..05b6fa1f 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -880,6 +880,9 @@ int sigar_net_info_get(sigar_t *sigar, fclose(fp); + getdomainname(netinfo->domain, sizeof(netinfo->domain)); + netinfo->domain[sizeof(netinfo->domain)-1] = '\0'; + return SIGAR_OK; }