Skip to content

Commit

Permalink
Fix off by 1 in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Dec 25, 2023
1 parent 4bab71a commit 6169cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FreePackages/Handlers/PackageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ internal async static Task OnPICSRestart(uint oldChangeNumber) {
// Search for the oldest change number which is still valid for apps
var appChanges = await FindOldestPICSChanges(oldChangeNumber + 1, picsChanges.CurrentChangeNumber, findApps: true);
if (appChanges != null) {
ASF.ArchiLogger.LogGenericDebug(String.Format("Recovered {0} app changes at change number {1}", appChanges.AppChanges.Count, appChanges.LastChangeNumber));
ASF.ArchiLogger.LogGenericDebug(String.Format("Recovered {0} app changes at change number {1}", appChanges.AppChanges.Count, appChanges.LastChangeNumber + 1));

OnPICSChanges(appChanges.AppChanges, new Dictionary<uint, SteamApps.PICSChangesCallback.PICSChangeData>());
}
Expand All @@ -142,7 +142,7 @@ internal async static Task OnPICSRestart(uint oldChangeNumber) {
// Search for the oldest change number which is still valid for packages
var packageChanges = await FindOldestPICSChanges(oldChangeNumber + 1, picsChanges.CurrentChangeNumber, findApps: false);
if (packageChanges != null) {
ASF.ArchiLogger.LogGenericDebug(String.Format("Recovered {0} package changes at change number {1}", packageChanges.PackageChanges.Count, packageChanges.LastChangeNumber));
ASF.ArchiLogger.LogGenericDebug(String.Format("Recovered {0} package changes at change number {1}", packageChanges.PackageChanges.Count, packageChanges.LastChangeNumber + 1));

OnPICSChanges(new Dictionary<uint, SteamApps.PICSChangesCallback.PICSChangeData>(), packageChanges.PackageChanges);
}
Expand Down

0 comments on commit 6169cb8

Please sign in to comment.