Use correct limit for bytes
diff --git a/lib/src/usage_impl.dart b/lib/src/usage_impl.dart
index 00fd280..daaff98 100644
--- a/lib/src/usage_impl.dart
+++ b/lib/src/usage_impl.dart
@@ -271,7 +271,8 @@
// First check if we have a full batch - if so, send them immediately.
if (_batchedEvents.length >= _maxHitsPerBatch ||
_batchedEvents.fold<int>(0, (s, e) => s + e.length) >=
- _maxHitsPerBatch) {
+ _maxBytesPerBatch) {
+ print("full $_batchedEvents");
_trySendBatches(completer);
} else if (!_isSendingScheduled) {
_isSendingScheduled = true;