|
@@ -9,8 +9,6 @@ package stats
|
|
|
import (
|
|
|
"time"
|
|
|
|
|
|
- "github.com/syncthing/protocol"
|
|
|
-
|
|
|
"github.com/syncthing/syncthing/lib/db"
|
|
|
"github.com/syndtr/goleveldb/leveldb"
|
|
|
)
|
|
@@ -55,13 +53,13 @@ func (s *FolderStatisticsReference) GetLastFile() LastFile {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-func (s *FolderStatisticsReference) ReceivedFile(file protocol.FileInfo) {
|
|
|
+func (s *FolderStatisticsReference) ReceivedFile(file string, deleted bool) {
|
|
|
if debug {
|
|
|
l.Debugln("stats.FolderStatisticsReference.ReceivedFile:", s.folder, file)
|
|
|
}
|
|
|
s.ns.PutTime("lastFileAt", time.Now())
|
|
|
- s.ns.PutString("lastFileName", file.Name)
|
|
|
- s.ns.PutBool("lastFileDeleted", file.IsDeleted())
|
|
|
+ s.ns.PutString("lastFileName", file)
|
|
|
+ s.ns.PutBool("lastFileDeleted", deleted)
|
|
|
}
|
|
|
|
|
|
func (s *FolderStatisticsReference) GetStatistics() FolderStatistics {
|