set sys_info.arch
This commit is contained in:
parent
ad2533a444
commit
4f8ef532dc
|
@ -29,6 +29,7 @@
|
||||||
#include <sys/proc.h>
|
#include <sys/proc.h>
|
||||||
#include <sys/swap.h>
|
#include <sys/swap.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/systeminfo.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
|
@ -2299,6 +2300,8 @@ int sigar_os_sys_info_get(sigar_t *sigar,
|
||||||
{
|
{
|
||||||
char *vendor_version;
|
char *vendor_version;
|
||||||
|
|
||||||
|
sysinfo(SI_ARCHITECTURE, sys_info->arch, sizeof(sys_info->arch));
|
||||||
|
|
||||||
SIGAR_SSTRCPY(sys_info->name, "Solaris");
|
SIGAR_SSTRCPY(sys_info->name, "Solaris");
|
||||||
SIGAR_SSTRCPY(sys_info->vendor, "Sun Microsystems");
|
SIGAR_SSTRCPY(sys_info->vendor, "Sun Microsystems");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue