mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-14 00:01:30 -04:00
send process name
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
using namespace StellaBellum;
|
||||
|
||||
webAPIHeartbeat::webAPIHeartbeat() {
|
||||
extern char *__progname;
|
||||
webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metric/shoulderTap?type=server").decrypt()), std::string(vxENCRYPT("StellaBellum WebAPI Metrics Sender").decrypt()));
|
||||
api.addJsonData<std::string>(std::string(vxENCRYPT("process").decrypt()), std::string(__progname));
|
||||
bool result = api.submit();
|
||||
|
||||
if (result) {
|
||||
|
||||
Reference in New Issue
Block a user