diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-12-05 14:50:59 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-12-05 14:50:59 -0800 |
commit | 926ecf964047f7ab23ee2c086d826688c5228c96 (patch) | |
tree | 62f4cfea0489d56d2a593db44ac2e8bacb62c84f /controller/EmbeddedNetworkController.cpp | |
parent | 431716e249c0dcf29df284b8a551b1561ebe8115 (diff) | |
download | infinitytier-926ecf964047f7ab23ee2c086d826688c5228c96.tar.gz infinitytier-926ecf964047f7ab23ee2c086d826688c5228c96.zip |
docs
Diffstat (limited to 'controller/EmbeddedNetworkController.cpp')
-rw-r--r-- | controller/EmbeddedNetworkController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp index 018f2215..c490055c 100644 --- a/controller/EmbeddedNetworkController.cpp +++ b/controller/EmbeddedNetworkController.cpp @@ -1097,7 +1097,7 @@ void EmbeddedNetworkController::handleRemoteTrace(const ZT_RemoteTrace &rt) } const int64_t now = OSUtils::now(); - OSUtils::ztsnprintf(id,sizeof(id),"%.10llx-%.10llx-%.16llx-%.8lx",_signingId.address().toInt(),rt.origin,now,++idCounter); + OSUtils::ztsnprintf(id,sizeof(id),"%.10llx-%.16llx-%.10llx-%.4x",_signingId.address().toInt(),now,rt.origin,(unsigned int)(idCounter++ & 0xffff)); d["id"] = id; d["objtype"] = "trace"; d["ts"] = now; |