webbj74/mcstat — Issue #1: Startup shows negative value for bytes_written
Author: webbj74
Created: 2012-01-30 22:51:20+00:00
State: open

On startup mcstat reports -2G "out"

Memcache version 1.4.5
Max Memory Size: 64M Pointer size: 32 bit

time cnct used gets hits miss hit% miss% in out
22:12:57 3 52M 140M 92M 48M 65.48 34.52 1G -2G

22:13:02 3 52M 87 52 35 59.77 40.23 5k 43k

The actual value is closer to `STAT bytes_written 84629264458`

32bit server, likely that PHP_INT_MAX is getting in the way. Casting the value as a float before subtracting should fix this.