Skip to content

Commit 1039bee

Browse files
authored
Merge pull request #56 from thiagograndesso/update-readme-file
update documentation to use BufferSize property in code example
2 parents e72bce1 + b23a3b4 commit 1039bee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ In practice, this configuration (assuming one provisions an adequate `bufferSize
4949
// Example check: log message to an out of band alarm channel if logging is showing signs of getting overwhelmed
5050
void ExecuteAsyncBufferCheck(IAsyncLogEventSinkInspector inspector)
5151
{
52-
var usagePct = inspector.Count * 100 / inspector.BoundedCapacity;
53-
if (usagePct > 50) SelfLog.WriteLine("Log buffer exceeded {0:p0} usage (limit: {1})", usagePct, inspector.BoundedCapacity);
52+
var usagePct = inspector.Count * 100 / inspector.BufferSize;
53+
if (usagePct > 50) SelfLog.WriteLine("Log buffer exceeded {0:p0} usage (limit: {1})", usagePct, inspector.BufferSize);
5454
}
5555

5656
class MonitorConfiguration : IAsyncLogEventSinkMonitor

0 commit comments

Comments
 (0)