aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/API/Controllers/SharesController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-06-02 07:28:10 -0500
committerJP Dillingham <jp@dillingham.me>2022-06-02 07:28:10 -0500
commit2efd8278ce9a5a895fe0c75bd95080ecc386163b (patch)
tree4637e61c969639df8475ed6bb4aeac5437c35b64 /src/slskd/Shares/API/Controllers/SharesController.cs
parentcbffe2d38e5b7b0831eeacff7ba1ef7973f4f85c (diff)
downloadslskd-2efd8278ce9a5a895fe0c75bd95080ecc386163b.tar.gz
differentiate configured shares vs cached shares
Diffstat (limited to 'src/slskd/Shares/API/Controllers/SharesController.cs')
-rw-r--r--src/slskd/Shares/API/Controllers/SharesController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Shares/API/Controllers/SharesController.cs b/src/slskd/Shares/API/Controllers/SharesController.cs
index 8ae8551f..41178bac 100644
--- a/src/slskd/Shares/API/Controllers/SharesController.cs
+++ b/src/slskd/Shares/API/Controllers/SharesController.cs
@@ -59,7 +59,7 @@ namespace slskd.Shares.API
{
var browse = await Shares.BrowseAsync();
- var summary = Shares.Shares.Select(share =>
+ var summary = Shares.CachedShares.Select(share =>
{
var directories = browse.Where(directory => directory.Name.StartsWith(share.RemotePath));
var fileCount = directories.Aggregate(seed: 0, (sum, directory) =>