BBlack has submitted this change and it was merged.

Change subject: upload: splay restart cron ever betterer
......................................................................


upload: splay restart cron ever betterer

Change-Id: Ide899e2fbaacb0787dea9dcff066e8429735f443
---
M modules/role/manifests/cache/upload.pp
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  BBlack: Verified; Looks good to me, approved



diff --git a/modules/role/manifests/cache/upload.pp 
b/modules/role/manifests/cache/upload.pp
index 908f7ad..4f52320 100644
--- a/modules/role/manifests/cache/upload.pp
+++ b/modules/role/manifests/cache/upload.pp
@@ -131,7 +131,7 @@
     }
 
     # XXX: temporary, we need this to mitigate T145661
-    $rt_parts = split(inline_template("<%= require 'digest/md5'; x = 
Random.new(Digest::MD5.hexdigest(@fqdn).to_i(16)).rand(1440); hh = x / 60; mm = 
x % 60; hh.to_s() + ':' + mm.to_s(); %>"), ':')
+    $rt_parts = split(inline_template("<%= require 'digest/md5'; x = 
Digest::MD5.hexdigest(@fqdn).to_i(16) % 1440; hh = x / 60; mm = x % 60; 
hh.to_s() + ':' + mm.to_s(); %>"), ':')
     $be_restart_h = $rt_parts[0]
     $be_restart_m = $rt_parts[1]
 

-- 
To view, visit https://gerrit.wikimedia.org/r/311235
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ide899e2fbaacb0787dea9dcff066e8429735f443
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BBlack <bbl...@wikimedia.org>
Gerrit-Reviewer: BBlack <bbl...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to