summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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