Fixed hostname in statistics to properly be in packed binary format, internally.

This commit is contained in:
Thulinma 2014-10-22 16:51:51 +02:00
parent ba3880d78d
commit c26661b690
3 changed files with 16 additions and 3 deletions

View file

@ -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());