From f55cb9cfba8f79b1c735f6d4fd68719c6446add9 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 5 Oct 2007 23:13:06 +0000 Subject: [PATCH] recognize Scientific Linux --- src/os/linux/linux_sigar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index 7084178b..83869c5b 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -2441,6 +2441,8 @@ static void redhat_vendor_parse(char *line, sigar_sys_info_t *info) #define RHEL_PREFIX "Red Hat Enterprise Linux " #define CENTOS_VENDOR "CentOS" +#define SL_VENDOR "Scientific Linux" + if (strnEQ(line, RHEL_PREFIX, sizeof(RHEL_PREFIX)-1)) { snprintf(info->vendor_version, sizeof(info->vendor_version), @@ -2450,6 +2452,9 @@ static void redhat_vendor_parse(char *line, sigar_sys_info_t *info) else if (strnEQ(line, CENTOS_VENDOR, sizeof(CENTOS_VENDOR)-1)) { SIGAR_SSTRCPY(info->vendor, CENTOS_VENDOR); } + else if (strnEQ(line, SL_VENDOR, sizeof(SL_VENDOR)-1)) { + SIGAR_SSTRCPY(info->vendor, SL_VENDOR); + } } #define is_quote(c) ((c == '\'') || (c == '"'))