From 0b335d9025b28d47ff39ecd7d3ab34d8f5b25db1 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 7 Mar 2009 06:40:23 -0800 Subject: [PATCH] 6.1 == Windows 7 --- src/os/win32/win32_sigar.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index 9879c701..224edd40 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -3465,8 +3465,16 @@ int sigar_os_sys_info_get(sigar_t *sigar, } else if (version.dwMajorVersion == 6) { if (version.sigar_wProductType == VER_NT_WORKSTATION) { - vendor_name = "Windows Vista"; - vendor_version = "Vista"; + if (version.dwMinorVersion == 0) { + vendor_name = "Windows Vista"; + vendor_version = "Vista"; + code_name = "Longhorn"; + } + else { + vendor_name = "Windows 7"; + vendor_version = "7"; + code_name = "Vienna"; + } } else { vendor_name = "Windows 2008";