Merge pull request #52 from NicolasConstant/develop

0.8.1 PR
This commit is contained in:
Nicolas Constant 2021-01-16 04:31:47 +01:00 committed by GitHub
commit be13b6c859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -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()

View file

@ -4,7 +4,7 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
<UserSecretsId>d21486de-a812-47eb-a419-05682bb68856</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<Version>0.8.0</Version>
<Version>0.8.1</Version>
</PropertyGroup>
<ItemGroup>