From c6a319d98b5ed7f4bfd7ac2e0ce1e5854bdb6e0f Mon Sep 17 00:00:00 2001 From: Evan Spensley <94762716+0evan@users.noreply.github.com> Date: Tue, 26 Jul 2022 04:15:19 -0400 Subject: [PATCH] gui: Add device sync status (fixes #7981) (#8401) --- gui/default/index.html | 7 +++++++ lib/model/folder_summary.go | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gui/default/index.html b/gui/default/index.html index 3764e6b81..c7008db22 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -760,6 +760,13 @@ Never {{deviceStats[deviceCfg.deviceID].lastSeen | date:"yyyy-MM-dd HH:mm:ss"}} + +  Sync Status + Up to Date + + ({{completion[deviceCfg.deviceID]._total | percent}}, {{completion[deviceCfg.deviceID]._needBytes | binary}}B) + +  Download Rate diff --git a/lib/model/folder_summary.go b/lib/model/folder_summary.go index b3c924476..3fed5c55c 100644 --- a/lib/model/folder_summary.go +++ b/lib/model/folder_summary.go @@ -407,10 +407,6 @@ func (c *folderSummaryService) sendSummary(ctx context.Context, folder string) { // We already know about ourselves. continue } - if _, ok := c.model.Connection(devCfg.DeviceID); !ok { - // We're not interested in disconnected devices. - continue - } // Get completion percentage of this folder for the // remote device.