iolog: hist_sum() should return unsigned long