lib/model: Typo in method name (fixes #9389)

This commit is contained in:
Jakob Borg 2024-02-01 15:13:33 +01:00
parent a49e318d25
commit eb617865d2
1 changed files with 3 additions and 3 deletions

View File

@ -839,7 +839,7 @@ func newFolderCompletion(global, need db.Counts, sequence int64, state remoteFol
Sequence: sequence, Sequence: sequence,
RemoteState: state, RemoteState: state,
} }
comp.setComplectionPct() comp.setCompletionPct()
return comp return comp
} }
@ -849,10 +849,10 @@ func (comp *FolderCompletion) add(other FolderCompletion) {
comp.GlobalItems += other.GlobalItems comp.GlobalItems += other.GlobalItems
comp.NeedItems += other.NeedItems comp.NeedItems += other.NeedItems
comp.NeedDeletes += other.NeedDeletes comp.NeedDeletes += other.NeedDeletes
comp.setComplectionPct() comp.setCompletionPct()
} }
func (comp *FolderCompletion) setComplectionPct() { func (comp *FolderCompletion) setCompletionPct() {
if comp.GlobalBytes == 0 { if comp.GlobalBytes == 0 {
comp.CompletionPct = 100 comp.CompletionPct = 100
} else { } else {