wrapping up everything minus var renaming (#5952)

This commit is contained in:
Clint Rutkas
2020-08-14 09:22:24 -07:00
committed by GitHub
parent 913615f1c2
commit 5c1713f274
13 changed files with 37 additions and 34 deletions

View File

@@ -22,7 +22,7 @@ namespace PowerLauncher.Storage
var span = DateTime.Now - dt;
if (span.Days > 365)
{
int years = (span.Days / 365);
int years = span.Days / 365;
if (span.Days % 365 != 0)
{
years += 1;
@@ -33,7 +33,7 @@ namespace PowerLauncher.Storage
if (span.Days > 30)
{
int months = (span.Days / 30);
int months = span.Days / 30;
if (span.Days % 31 != 0)
{
months += 1;