-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix package update check message, optimize some things
- fix an issue where the package update check message would only contain an asterisk for a host if there was a pending restart but all packages were up-to-date - create an object for holding update check results - remove `bool isPeriodicCheck` argument from `PackageUpdateCheck()`; move logic to timed task instead - adjust package update check output format in `/debug checks`
- Loading branch information
1 parent
69c7ea7
commit 8de8d12
Showing
4 changed files
with
59 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace MechanicalMilkshake.Entities; | ||
|
||
public class UpdateCheckResult | ||
{ | ||
public UpdateCheckResult(string hostname, int updateCount, bool restartRequired) | ||
{ | ||
Hostname = hostname; | ||
UpdateCount = updateCount; | ||
RestartRequired = restartRequired; | ||
} | ||
public string Hostname { get; } | ||
public int UpdateCount { get; } | ||
public bool RestartRequired { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters