aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run_bp.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run_bp.py')
-rwxr-xr-xscripts/run_bp.py2
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):