You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2017/09/19 18:09:56 UTC
[trafficserver] 02/03: improves readability
This is an automated email from the ASF dual-hosted git repository.
amc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit a26aef80a81814bd4b123eb32daaed58c1c0c161
Author: Derek Dagit <de...@oath.com>
AuthorDate: Thu Sep 14 18:15:52 2017 +0000
improves readability
---
cmd/traffic_manager/traffic_manager.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/traffic_manager/traffic_manager.cc b/cmd/traffic_manager/traffic_manager.cc
index 37ea467..a35cd70 100644
--- a/cmd/traffic_manager/traffic_manager.cc
+++ b/cmd/traffic_manager/traffic_manager.cc
@@ -743,7 +743,7 @@ main(int argc, const char **argv)
if (lmgmt->run_proxy && !lmgmt->processRunning() && lmgmt->proxy_recoverable) { /* Make sure we still have a proxy up */
const uint64_t now = static_cast<uint64_t>(time(nullptr));
- if (sleep_time && now - last_start_epoc_s < MAX_SLEEP_S) {
+ if (sleep_time && ((now - last_start_epoc_s) < MAX_SLEEP_S)) {
mgmt_log("Relaunching proxy after %d sec...", sleep_time);
millisleep(1000 * sleep_time); // we use millisleep instead of sleep because it doesnt interfere with signals
sleep_time = MIN(sleep_time * 2, MAX_SLEEP_S);
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.