CPU and RAM consumption
Florian Coulmier
Florian.Coulmier at vadesecure.com
Thu May 28 18:48:44 CEST 2020
Hi,
I've never responded, but this solution works great!
I saw it was included in version 1.8.10. We have to deploy it now.
Thanks
Florian Coulmier
-----Message d'origine-----
De : Mandos-Dev <mandos-dev-bounces at recompile.se> au nom de Teddy Hogeborn <teddy at recompile.se>
Organisation : Recompile
Répondre à : Teddy Hogeborn <teddy+mandos at recompile.se>
Date : mardi 21 janvier 2020 à 22:51
À : Mandos Development <mandos-dev at recompile.se>
Objet : Re: CPU and RAM consumption
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://office365-preview.vadesecure.com/safeproxy/v3?f=dPIBDquxH4OqHSCvRwJ8MPi47Lb0cWas7wrpSGMh4pGORjbiY2KxBZ0dqmQE0dTe&i=yia83PL7iv999AcJqRcRfQBEyCzufxOg0S-JRd8psKb46_LV6-WQ4NCw-cXFKlXLHuPnuhwg_Kb8LnLY-UD0ag&k=jwpR&r=D_44nfiAZWJ00WKRYgSQ79p3jPiiptAbxHJR8Rk-Gy800RcC_HBUeRAp8Xl4oTKu&u=https%3A%2F%2Fwww.recompile.se%2Fmandos
More information about the Mandos-Dev
mailing list