Code

memcached: Fix hitratio reporting
authorPavel Rochnyack <pavel2000@ngs.ru>
Sun, 30 Jul 2017 10:33:49 +0000 (17:33 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 9 Oct 2017 12:10:06 +0000 (19:10 +0700)
commit2394ebb5fd42c82593c38e04bd194c24800bb263
tree5552ed6c7d511ba753303cc6806abaa53cae8449
parentc9bea8828313ec45e4dd66049ca9a50fff789b4b
memcached: Fix hitratio reporting

When Collectd calculates 'hitratio', it divides two continiously-grown values of Memcached stats.
As result, reported metric contains the average since Memcached start, which is incorrect.
src/memcached.c