summaryrefslogtreecommitdiff
path: root/one.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-08 13:06:24 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-08 13:06:24 -0800
commit9c7ee5a21e2875baf3b1643101f660f41c903124 (patch)
treeeb3dbdcd28b769839149a4fe96f7a79a4c6dfd62 /one.cpp
parenta9c4ce38f0b3aaae7e354e56dd6548f8e1ae928d (diff)
downloadinfinitytier-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.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/one.cpp b/one.cpp
index 48b5d9a2..a1238bb8 100644
--- a/one.cpp
+++ b/one.cpp
@@ -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;
}