aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-08-04 10:30:39 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-08-04 10:30:39 -0500
commita09df6485dea51732fbe9966822bbf91bc4ebda0 (patch)
treec8f891d968bfb3d806ee01c52b762d4eed509dc3
parentc17197f30ba6339431e743bf3244b58ef7361115 (diff)
downloadslskd-a09df6485dea51732fbe9966822bbf91bc4ebda0.tar.gz
Ready > !Filling, add Faulted
-rw-r--r--src/slskd/Application/Shares/SharedFileCacheState.cs13
1 files changed, 9 insertions, 4 deletions
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()
{
/// <summary>
- /// Gets a value indicating whether the cache is ready to be used.
+ /// Gets a value indicating whether the cache is being filled.
/// </summary>
- public bool Ready { get; init; } = true;
+ public bool Filling { get; init; } = false;
+
+ /// <summary>
+ /// Gets a value indicating whether the cache is faulted.
+ /// </summary>
+ public bool Faulted { get; init; } = false;
/// <summary>
/// Gets the current fill progress.
/// </summary>
- public double FillProgress { get; init; } = 1;
+ public double FillProgress { get; init; }
/// <summary>
/// Gets the number of cached directories.
@@ -49,4 +54,4 @@ namespace slskd.Shares
/// </summary>
public DateTime? LastFilled { get; init; }
}
-}
+} \ No newline at end of file