mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Added information about O/S, CPU architecture and application name where it was missing
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include <QApplication>
|
||||
#include <QList>
|
||||
#include <QSysInfo>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -72,8 +73,13 @@ int WebAPIAdapterGUI::instanceSummary(
|
||||
SWGSDRangel::SWGErrorResponse& error __attribute__((unused)))
|
||||
{
|
||||
|
||||
*response.getAppname() = qApp->applicationName();
|
||||
*response.getVersion() = qApp->applicationVersion();
|
||||
*response.getQtVersion() = QString(QT_VERSION_STR);
|
||||
#if QT_VERSION >= 0x050400
|
||||
*response.getArchitecture() = QString(QSysInfo::currentCpuArchitecture());
|
||||
*response.getOs() = QString(QSysInfo::prettyProductName());
|
||||
#endif
|
||||
|
||||
SWGSDRangel::SWGLoggingInfo *logging = response.getLogging();
|
||||
logging->init();
|
||||
|
||||
Reference in New Issue
Block a user