diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-05 11:33:38 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-17 16:57:31 +0800 |
commit | 892e05dcc3fcc88b4c4f0f3e2d9982c9f1772e23 (patch) | |
tree | d54a02ae90821db9e65f2b1cdc6e8a073d57513a | |
parent | 0b51701d57a115c5845af2cb028bde8ddb85979f (diff) | |
download | go-tangerine-892e05dcc3fcc88b4c4f0f3e2d9982c9f1772e23.tar.gz go-tangerine-892e05dcc3fcc88b4c4f0f3e2d9982c9f1772e23.tar.zst go-tangerine-892e05dcc3fcc88b4c4f0f3e2d9982c9f1772e23.zip |
scripts: return abs for offset
-rwxr-xr-x | scripts/run_bp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/run_bp.py b/scripts/run_bp.py index e49ca01ee..ce2efc1c5 100755 --- a/scripts/run_bp.py +++ b/scripts/run_bp.py @@ -76,7 +76,7 @@ def get_time_delta(): """Compare time with NTP and return time delta.""" c = ntplib.NTPClient() response = c.request('tw.pool.ntp.org', version=3) - return response.offset + return abs(response.offset) def generate_node_key(nodekey): |