fixup! MetricTank metric collector

pull/517/head
Michael 5 years ago
parent afa058c4ee
commit ae341b40fd
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

@ -189,7 +189,7 @@ __ ___ ____ _ _ ___ _ _ ____
}
}
m_metricsPublisher->setDefault(absl::Seconds(1));
m_metricsPublisher->setDefault(absl::Seconds(30));
m_scheduler->start();
}

@ -87,7 +87,7 @@ namespace llarp
}
break;
}
assert(false && "Invalid publication type");
assert(false && "Invalid publication type");
}
std::string
@ -279,7 +279,15 @@ namespace llarp
if(tags.count("user") == 0)
{
#ifndef _WIN32
tags["user"] = getlogin();
const char *username = getlogin();
if(username != nullptr)
{
tags["user"] = username;
}
else
{
tags["user"] = "unknown";
}
#else
char username[UNLEN + 1];
DWORD username_len = UNLEN + 1;

Loading…
Cancel
Save