fix mention count statistics

This commit is contained in:
Nicolas Constant 2021-01-15 22:18:01 -05:00
parent 3dad498e78
commit 39d0bfb85a
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688

View file

@ -45,12 +45,14 @@ namespace BirdsiteLive.Domain.Statistics
public void ExtractedDescription(int mentionsCount)
{
Interlocked.Increment(ref _descriptionMentionsExtracted);
for (var i = 0; i < mentionsCount; i++)
Interlocked.Increment(ref _descriptionMentionsExtracted);
}
public void ExtractedStatus(int mentionsCount)
{
Interlocked.Increment(ref _statusMentionsExtracted);
for (var i = 0; i < mentionsCount; i++)
Interlocked.Increment(ref _statusMentionsExtracted);
}
public ExtractionStatistics GetStatistics()