show windoes 2012
This commit is contained in:
parent
f15aa84dfe
commit
5a1d5e75f1
|
@ -3722,6 +3722,7 @@ int sigar_who_list_get_win32(sigar_t *sigar,
|
|||
#define SIGAR_ARCH "x86"
|
||||
#endif
|
||||
|
||||
|
||||
int sigar_os_sys_info_get(sigar_t *sigar,
|
||||
sigar_sys_info_t *sysinfo)
|
||||
{
|
||||
|
@ -3770,10 +3771,24 @@ int sigar_os_sys_info_get(sigar_t *sigar,
|
|||
}
|
||||
}
|
||||
else {
|
||||
// not nt work station
|
||||
if (version.dwMinorVersion == 0 || version.dwMinorVersion ==1) {
|
||||
vendor_name = "Windows 2008";
|
||||
vendor_version = "2008";
|
||||
code_name = "Longhorn Server";
|
||||
}
|
||||
else if (version.dwMinorVersion == 2) {
|
||||
vendor_name = "Windows 2012";
|
||||
vendor_version = "2012";
|
||||
code_name = "Windows Server 8";
|
||||
}
|
||||
else {
|
||||
// defaults
|
||||
vendor_name = "Windows Unknown";
|
||||
vendor_version = "2012";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SIGAR_SSTRCPY(sysinfo->name, "Win32");
|
||||
|
|
Loading…
Reference in New Issue