RHEL vendor_version
This commit is contained in:
parent
fa8f8a16e6
commit
4e866921b9
@ -2157,7 +2157,8 @@ static void redhat_vendor_parse(char *line, sigar_sys_info_t *info)
|
||||
#define RHEL_PREFIX "Red Hat Enterprise Linux "
|
||||
#define CENTOS_VENDOR "CentOS"
|
||||
if (strnEQ(line, RHEL_PREFIX, sizeof(RHEL_PREFIX)-1)) {
|
||||
/*XXX*/
|
||||
sprintf(info->vendor_version, "Enterprise Linux %c",
|
||||
info->vendor_version[0]);
|
||||
}
|
||||
else if (strnEQ(line, CENTOS_VENDOR, sizeof(CENTOS_VENDOR)-1)) {
|
||||
SIGAR_SSTRCPY(info->vendor, CENTOS_VENDOR);
|
||||
|
Loading…
Reference in New Issue
Block a user