diff options
author | davidovski <git@davidovski.xyz> | 2021-11-17 12:23:24 +0000 |
---|---|---|
committer | davidovski <git@davidovski.xyz> | 2021-11-17 12:23:24 +0000 |
commit | 28029bc25090e706d08b6c5735bb5dfc24176f59 (patch) | |
tree | a1a358cdcaf904f25eb0e54f9ad512b451981681 | |
parent | 0ff24f5611f8a30f01ae08d866b5276c020a8665 (diff) |
neatened ping number to int
-rw-r--r-- | src/verbs/sync.py | 2 | ||||
-rw-r--r-- | xipkg.conf | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/verbs/sync.py b/src/verbs/sync.py index e9cc7b3..bd828ef 100644 --- a/src/verbs/sync.py +++ b/src/verbs/sync.py @@ -103,7 +103,7 @@ def test_sources(sources, file_path, test_count=10): total += test_source(source, url) util.loading_bar(checked, len(sources) * test_count, f"Pinging Sources") checked += 1 - pings[source] = total / test_count if total > 0 else 0 + pings[source] = int(total / test_count) if total > 0 else 0 sorted(pings, reverse=True) @@ -14,5 +14,5 @@ repos [ # the number of times to ping a server to find out its speed # use 0 to disable determining the fastest servers -pings 10 +pings 4 |