CPU and RAM consumption

Teddy Hogeborn teddy at recompile.se
Tue Jan 21 22:51:12 CET 2020


Never mind that, try this one, which seems to work for me:

=== modified file 'mandos'
--- mandos	2019-12-04 23:35:08 +0000
+++ mandos	2020-01-21 21:46:00 +0000
@@ -78,6 +78,7 @@
 import collections
 import codecs
 import unittest
+import random
 
 import dbus
 import dbus.service
@@ -1035,7 +1036,8 @@
         if self.checker_initiator_tag is not None:
             GLib.source_remove(self.checker_initiator_tag)
         self.checker_initiator_tag = GLib.timeout_add(
-            int(self.interval.total_seconds() * 1000),
+            random.randrange(int(self.interval.total_seconds() * 1000
+                                 + 1)),
             self.start_checker)
         # Schedule a disable() when 'timeout' has passed
         if self.disable_initiator_tag is not None:

/Teddy Hogeborn

-- 
The Mandos Project
https://www.recompile.se/mandos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://mail.recompile.se/pipermail/mandos-dev/attachments/20200121/9894474f/attachment.sig>


More information about the Mandos-Dev mailing list