From 4e866921b9eba45f1e90e7fd4a5b399f56cf7ca4 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 25 Sep 2006 00:55:12 +0000 Subject: [PATCH] RHEL vendor_version --- src/os/linux/linux_sigar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index 1f7a39c6..aeadc7db 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -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);