Fixed hostname in statistics to properly be in packed binary format, internally.
This commit is contained in:
parent
ba3880d78d
commit
c26661b690
3 changed files with 16 additions and 3 deletions
|
@ -638,6 +638,7 @@ namespace Mist {
|
|||
}
|
||||
|
||||
void Output::stats(){
|
||||
static bool setHost = true;
|
||||
if (!isInitialized){
|
||||
return;
|
||||
}
|
||||
|
@ -647,7 +648,10 @@ namespace Mist {
|
|||
lastStats = now;
|
||||
IPC::statExchange tmpEx(statsPage.getData());
|
||||
tmpEx.now(now);
|
||||
tmpEx.host(myConn.getHost());
|
||||
if (setHost){
|
||||
tmpEx.host(myConn.getBinHost());
|
||||
setHost = false;
|
||||
}
|
||||
tmpEx.streamName(streamName);
|
||||
tmpEx.connector(capa["name"].asString());
|
||||
tmpEx.up(myConn.dataUp());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue