diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-08 13:06:24 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-08 13:06:24 -0800 |
| commit | 9c7ee5a21e2875baf3b1643101f660f41c903124 (patch) | |
| tree | eb3dbdcd28b769839149a4fe96f7a79a4c6dfd62 /one.cpp | |
| parent | a9c4ce38f0b3aaae7e354e56dd6548f8e1ae928d (diff) | |
| download | infinitytier-9c7ee5a21e2875baf3b1643101f660f41c903124.tar.gz infinitytier-9c7ee5a21e2875baf3b1643101f660f41c903124.zip | |
Tear out old "link quality" stuff since it is not currently used and will be done differently.
Diffstat (limited to 'one.cpp')
| -rw-r--r-- | one.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -365,8 +365,7 @@ static int cli(int argc,char **argv) char tmp[256]; std::string addr = path["address"]; const int64_t now = OSUtils::now(); - const double lq = (path.count("linkQuality")) ? (double)path["linkQuality"] : -1.0; - OSUtils::ztsnprintf(tmp,sizeof(tmp),"%s;%lld;%lld;%1.2f",addr.c_str(),now - (int64_t)path["lastSend"],now - (int64_t)path["lastReceive"],lq); + OSUtils::ztsnprintf(tmp,sizeof(tmp),"%s;%lld;%lld",addr.c_str(),now - (int64_t)path["lastSend"],now - (int64_t)path["lastReceive"]); bestPath = tmp; break; } |
