From a09df6485dea51732fbe9966822bbf91bc4ebda0 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 4 Aug 2021 10:30:39 -0500 Subject: Ready > !Filling, add Faulted --- src/slskd/Application/Shares/SharedFileCacheState.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/slskd/Application/Shares/SharedFileCacheState.cs b/src/slskd/Application/Shares/SharedFileCacheState.cs index 4bda9d7b..37ac9f86 100644 --- a/src/slskd/Application/Shares/SharedFileCacheState.cs +++ b/src/slskd/Application/Shares/SharedFileCacheState.cs @@ -25,14 +25,19 @@ namespace slskd.Shares public record SharedFileCacheState() { /// - /// Gets a value indicating whether the cache is ready to be used. + /// Gets a value indicating whether the cache is being filled. /// - public bool Ready { get; init; } = true; + public bool Filling { get; init; } = false; + + /// + /// Gets a value indicating whether the cache is faulted. + /// + public bool Faulted { get; init; } = false; /// /// Gets the current fill progress. /// - public double FillProgress { get; init; } = 1; + public double FillProgress { get; init; } /// /// Gets the number of cached directories. @@ -49,4 +54,4 @@ namespace slskd.Shares /// public DateTime? LastFilled { get; init; } } -} +} \ No newline at end of file -- cgit v1.2.3