summaryrefslogtreecommitdiffstats
path: root/libraries/ganalytics/src/sys_unix.cpp
blob: b4dd9b2b4fe9d7bbd39e443225a731bd1b30013c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "sys.h"

#include <sys/utsname.h>

QString Sys::getSystemInfo()
{
	struct utsname buf;
	uname(&buf);
	QString system(buf.sysname);
	QString release(buf.release);

	return system + "; " + release;
}