using longs instead of ints for logging stats

using longs instead of ints for logging stats to avoid rounding errors