Access logs + made prometheus runtime changeable
This commit is contained in:
parent
7629b00a4c
commit
3980b8c8c1
9 changed files with 229 additions and 51 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "procs.h"
|
||||
#include "bitfields.h"
|
||||
#include "timing.h"
|
||||
#include "auth.h"
|
||||
|
||||
#if defined(__CYGWIN__) || defined(_WIN32)
|
||||
#include <windows.h>
|
||||
|
@ -619,6 +620,11 @@ namespace IPC {
|
|||
htobl(data + 8, time);
|
||||
}
|
||||
|
||||
/// Calculates session ID from CRC, stream name, connector and host.
|
||||
std::string statExchange::getSessId(){
|
||||
return Secure::md5(data+32, 140);
|
||||
}
|
||||
|
||||
///\brief Gets time currently connected
|
||||
long statExchange::time() {
|
||||
long result;
|
||||
|
|
|
@ -41,6 +41,7 @@ namespace IPC {
|
|||
void setSync(char s);
|
||||
unsigned int crc();
|
||||
uint32_t getPID();
|
||||
std::string getSessId();
|
||||
private:
|
||||
///\brief The payload for the stat exchange
|
||||
/// - 8 byte - now (timestamp of last statistics)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue