]> git.proxmox.com Git - pmg-api.git/commit
limit the 'recent_mailcount' to the correct time
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 12 Oct 2017 08:08:15 +0000 (10:08 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 12 Oct 2017 09:08:44 +0000 (11:08 +0200)
commite0dc62008f25af81e936bd55e827992498f8d993
tree133db8411ee8695ffa7cb1bc157cc29929943ee4
parent6060e345242b730573c2fa91201238583d2aa6b6
limit the 'recent_mailcount' to the correct time

when the api call began an the end of a second, and the
database query at the beginning of the next second, while
a new mail was coming in, we would get one row to many, triggering
a result verification exception

with limiting the query to the given endtime also, we
loose at most a fraction of the second and the rowcount is
correct

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PMG/Statistic.pm