Skip to content

Commit

Permalink
add a minimum activity verification before counting dino
Browse files Browse the repository at this point in the history
  • Loading branch information
maltir committed Apr 4, 2019
1 parent e92e8e3 commit 84f776f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classe/CalcPop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public Stat Calcul(ProgressBar progress)

foreach (RemoteFileInfo fileInfo in directoryInfo.Files)
{
if (fileInfo.LastWriteTime >= new DateTime(2018, 12, 01))
DateTime today = DateTime.Today;
if (fileInfo.LastWriteTime >= today.AddDays(-14))
{
TransferOperationResult transferResult = session.GetFiles(fileInfo.FullName + "*", "temp.json", false, transferOptions);
// Throw on any error
Expand Down

0 comments on commit 84f776f

Please sign in to comment.