Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f8da664

Browse files
Merge branch 'master' into fixes/lock-unlock-multiple-files
2 parents 38bbe98 + 042c21a commit f8da664

File tree

13 files changed

+308
-136
lines changed

13 files changed

+308
-136
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ You can reach the team right here by opening a [new issue](https://github.com/gi
66

77
[![Build Status](https://ci.appveyor.com/api/projects/status/github/github-for-unity/Unity?branch=master&svg=true)](https://ci.appveyor.com/project/github-windows/unity)
88

9-
[![Join the chat at https://gitter.im/github-for-unity/Unity](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/github-for-unity/Unity?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
109
[![Join the chat at https://discord.gg/5zH8hVx](https://img.shields.io/badge/discord-join%20chat-7289DA.svg)](https://discord.gg/5zH8hVx)
1110
[![GitHub for Unity live coding on Twitch](https://img.shields.io/badge/twitch-live%20coding-6441A4.svg)](https://www.twitch.tv/sh4na)
1211

script

src/GitHub.Api/Metrics/IMetricsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public interface IMetricsService
88
/// <summary>
99
/// Posts the provided usage model.
1010
/// </summary>
11-
Task PostUsage(List<Usage> model);
11+
void PostUsage(List<Usage> model);
1212
}
1313
}

src/GitHub.Api/Metrics/UsageModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ public Usage GetCurrentUsage(string appVersion, string unityVersion, string inst
8585

8686
public List<Usage> SelectReports(DateTime beforeDate)
8787
{
88-
return Reports.Where(usage => usage.Dimensions.Date.Date != beforeDate.Date).ToList();
88+
return Reports.Where(usage => usage.Dimensions.Date.Date < beforeDate.Date).ToList();
8989
}
9090

9191
public void RemoveReports(DateTime beforeDate)
9292
{
93-
Reports.RemoveAll(usage => usage.Dimensions.Date.Date != beforeDate.Date);
93+
Reports.RemoveAll(usage => usage.Dimensions.Date.Date < beforeDate.Date);
9494
}
9595
}
9696

9797
class UsageStore
9898
{
99-
public DateTimeOffset LastUpdated { get; set; } = DateTimeOffset.Now;
99+
public DateTimeOffset LastSubmissionDate { get; set; } = DateTimeOffset.Now;
100100
public UsageModel Model { get; set; } = new UsageModel();
101101

102102
public Measures GetCurrentMeasures(string appVersion, string unityVersion, string instanceId)

0 commit comments

Comments
 (0)