memcached: Fix hitratio calculation
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 9 Oct 2017 20:08:38 +0000 (03:08 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 9 Oct 2017 20:08:38 +0000 (03:08 +0700)
commit60bc9b5c6ef49ec78291d64ebe4c58569b1f9a61
tree08028ed5a4f4ca3eb1a8e5fb71ceff6f8c844d8b
parentcb48bb1590b2953f3d0134f6d6355c61bce7304a
memcached: Fix hitratio calculation

If there is no requests, NAN is reported as hitratio.
If there is no hits - zero is reported.
src/memcached.c