mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
lib/model: Typo in method name (fixes #9389)
This commit is contained in:
parent
a49e318d25
commit
eb617865d2
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user