diff --git a/src/BirdsiteLive.Domain/Statistics/ExtractionStatisticsHandler.cs b/src/BirdsiteLive.Domain/Statistics/ExtractionStatisticsHandler.cs
index b9446df..b8ed036 100644
--- a/src/BirdsiteLive.Domain/Statistics/ExtractionStatisticsHandler.cs
+++ b/src/BirdsiteLive.Domain/Statistics/ExtractionStatisticsHandler.cs
@@ -9,7 +9,7 @@ namespace BirdsiteLive.Domain.Statistics
void ExtractedStatus(int mentionsCount);
ExtractionStatistics GetStatistics();
}
-
+
public class ExtractionStatisticsHandler : IExtractionStatisticsHandler
{
private static int _lastDescriptionMentionsExtracted;
@@ -17,7 +17,7 @@ namespace BirdsiteLive.Domain.Statistics
private static int _descriptionMentionsExtracted;
private static int _statusMentionsExtracted;
-
+
private static System.Timers.Timer _resetTimer;
#region Ctor
@@ -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()
diff --git a/src/BirdsiteLive/BirdsiteLive.csproj b/src/BirdsiteLive/BirdsiteLive.csproj
index f665db2..041c8b3 100644
--- a/src/BirdsiteLive/BirdsiteLive.csproj
+++ b/src/BirdsiteLive/BirdsiteLive.csproj
@@ -4,7 +4,7 @@
netcoreapp3.1
d21486de-a812-47eb-a419-05682bb68856
Linux
- 0.8.0
+ 0.8.1