You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/05/21 14:04:17 UTC
[whimsy] branch master updated: Too many proxies spoil the calculation ...
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 00ddad6f Too many proxies spoil the calculation ...
00ddad6f is described below
commit 00ddad6ff3fadf8b0372b12d86313ca3625c6264
Author: Sebb <se...@apache.org>
AuthorDate: Sat May 21 15:04:11 2022 +0100
Too many proxies spoil the calculation ...
---
lib/whimsy/asf/meeting-util.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/whimsy/asf/meeting-util.rb b/lib/whimsy/asf/meeting-util.rb
index c8bc1f00..a3138a04 100644
--- a/lib/whimsy/asf/meeting-util.rb
+++ b/lib/whimsy/asf/meeting-util.rb
@@ -36,6 +36,7 @@ module ASF
quorum_need = (num_members + 2) / 3
num_proxies = Dir[File.join(mtg_dir, 'proxies-received', '*')].count
attend_irc = quorum_need - num_proxies
+ attend_irc = 0 if attend_irc < 0 # allow for more proxies than quorum
rescue StandardError => e
# Ensure we can't break rest of script
puts "ERROR: #{e}"