add net_info.domain for unix
This commit is contained in:
parent
dca5d82396
commit
b7c19ce5d3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue