Total Airports logged

This commit is contained in:
Kilian Hofmann 2022-01-03 15:53:32 +01:00
parent 0a4e95cd30
commit 50ea28b78e
3 changed files with 11 additions and 5 deletions

View File

@ -276,6 +276,8 @@ namespace util
}
#pragma clang diagnostic pop
#endif
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
static inline void setThreadName(const std::string &name)
{
#ifdef APL
@ -295,6 +297,7 @@ namespace util
pthread_setname_np(pthread_self(), name.substr(0, 15).c_str());
#endif
}
#pragma clang diagnostic pop
} // namespace util

View File

@ -1,6 +1,11 @@
#ifndef GERMANAIRLINESVA_GACONNECTOR_XPLUGIN_MAIN_H
#define GERMANAIRLINESVA_GACONNECTOR_XPLUGIN_MAIN_H
#include "config.h"
#include "makeRwysXP.h"
#include "simulatorDatabase.h"
#include "websocket.h"
#include "XPLM/XPLMDataAccess.h"
#include "XPLM/XPLMGraphics.h"
#include "XPLM/XPLMPlanes.h"
@ -8,11 +13,6 @@
#include "XPLM/XPLMProcessing.h"
#include "XPLM/XPLMUtilities.h"
#include "config.h"
#include "makeRwysXP.h"
#include "simulatorDatabase.h"
#include "websocket.h"
#include <atomic>
#include <chrono>
#include <cstdint>

View File

@ -52,6 +52,9 @@ int scan(const char *defaultFile,
}
}
logfile << std::endl
<< "<STATUS> Total airports: " << airports.size() << std::endl;
custom.close();
logfile.close();
return 0;