set sys_info vendor and description
This commit is contained in:
parent
fd40d95d34
commit
a4e588008e
@ -2258,6 +2258,8 @@ static int get_linux_vendor_info(sigar_sys_info_t *info)
|
||||
|
||||
data = buffer;
|
||||
|
||||
SIGAR_SSTRCPY(info->vendor, vendor->name);
|
||||
|
||||
if (vendor->parse) {
|
||||
vendor->parse(data, info);
|
||||
}
|
||||
@ -2265,6 +2267,9 @@ static int get_linux_vendor_info(sigar_sys_info_t *info)
|
||||
generic_vendor_parse(data, info);
|
||||
}
|
||||
|
||||
sprintf(info->description, "%s %s",
|
||||
info->vendor, info->vendor_version);
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user