Index: samples/chat/chat_server_lib.dart |
diff --git a/samples/chat/chat_server_lib.dart b/samples/chat/chat_server_lib.dart |
index d8865ff7c953db02faff07ac1f69a1d1b0af212c..7bbf55242fbbacbc2556ef33318a423de1849543 100644 |
--- a/samples/chat/chat_server_lib.dart |
+++ b/samples/chat/chat_server_lib.dart |
@@ -639,7 +639,7 @@ class IsolatedServer { |
class Rate { |
Rate([int timeRange = 1000, int buckets = 10]) |
: _timeRange = timeRange, |
- _buckets = new List(buckets + 1), // Current bucket is not in the sum. |
+ _buckets = new List.fixedLength(buckets + 1), // Current bucket is not in the sum. |
_currentBucket = 0, |
_currentBucketTime = new Date.now().millisecondsSinceEpoch, |
_sum = 0 { |