sync: Fix division by zero
This commit is contained in:
parent
c25c11e70a
commit
3c0751a78a
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ func SyncDeep(i Importer) (errs map[string][]string) {
|
||||||
errs["_date"] = []string{fmt.Sprintf("%v", startTime)}
|
errs["_date"] = []string{fmt.Sprintf("%v", startTime)}
|
||||||
errs["_themes"] = SyncThemes(i)
|
errs["_themes"] = SyncThemes(i)
|
||||||
|
|
||||||
if themes, err := fic.GetThemes(); err == nil {
|
if themes, err := fic.GetThemes(); err == nil && len(themes) > 0 {
|
||||||
DeepSyncProgress = 2
|
DeepSyncProgress = 2
|
||||||
var themeStep uint8 = uint8(250) / uint8(len(themes))
|
var themeStep uint8 = uint8(250) / uint8(len(themes))
|
||||||
|
|
||||||
|
|
Reference in a new issue