Changeset 270 for binary-improvements/MapRendering/Web/LogBuffer.cs
- Timestamp:
- Apr 28, 2016, 7:31:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/LogBuffer.cs
r253 r270 8 8 { 9 9 public class LogBuffer { 10 private const int MAX_ENTRIES = 30 ;10 private const int MAX_ENTRIES = 3000; 11 11 private static LogBuffer instance; 12 12 … … 108 108 } 109 109 110 int index = _start - listOffset; 111 112 if (index + _count > logEntries.Count) { 113 _count = logEntries.Count - index; 114 } 115 110 116 _end = _start + _count; 111 return logEntries.GetRange (_start - listOffset, _count); 117 118 return logEntries.GetRange (index, _count); 112 119 } 113 120 }
Note:
See TracChangeset
for help on using the changeset viewer.