set sys_info vendor and description

This commit is contained in:
Doug MacEachern 2006-09-25 00:41:23 +00:00
parent fd40d95d34
commit a4e588008e

View File

@ -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;
}