summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <git@davidovski.xyz>2021-11-17 12:23:24 +0000
committerdavidovski <git@davidovski.xyz>2021-11-17 12:23:24 +0000
commit28029bc25090e706d08b6c5735bb5dfc24176f59 (patch)
treea1a358cdcaf904f25eb0e54f9ad512b451981681
parent0ff24f5611f8a30f01ae08d866b5276c020a8665 (diff)
neatened ping number to int
-rw-r--r--src/verbs/sync.py2
-rw-r--r--xipkg.conf2
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)
diff --git a/xipkg.conf b/xipkg.conf
index 5121484..07d1801 100644
--- a/xipkg.conf
+++ b/xipkg.conf
@@ -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