Commit graph

4 commits

Author SHA1 Message Date
Pavel Raiskup
bbc325efdb Make sure the SMA window has really at least 2 seconds
This could cause problems on very unstable connections.  When next()
wasn't called for a long time, and then it was called very frequently
(so time() returned 4x the same value) we were clean()ing the
window.dequeue so much so we got "last" equal to "deque[0][0]",
therefore counter/(last - deque[0][0]) could cause a division by zero.

In theory, this would also solve some temporary situations when
subsequent calls to time() did not return consecutive values:

    >>> a = time() ; b = time() ; a > b
    True

Resolves: rhbz#2103093
Version: 1.6-4
2022-07-02 11:07:04 +02:00
Pavel Raiskup
22463f2e42 New upstream release
Resolves: rhbz#1987117
Version: 1.6-1
2021-12-04 19:50:18 +01:00
Pavel Raiskup
e39309c4c3 new upstream release
Version: 1.5-1
2019-03-18 11:51:35 +01:00
Pavel Raiskup
22856fa1a8 Updates from PR#3
Version: 1.4-2
2018-12-11 15:36:25 +01:00