Skip to content

Commit d85de2f

Browse files
authored
Revert "feat: Adjust download size calculation for incremental updates" (#239)
This reverts commit 6d50f2c.
1 parent 6d50f2c commit d85de2f

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/lastore-daemon/manager_ifc.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,6 @@ func (m *Manager) QueryAllSizeWithSource(mode system.UpdateType) (int64, *dbus.E
490490
logger.Infof("%v size is:%v M", strings.Join(sourcePathList, " and "), int64(allSize/(1000*1000)))
491491
}
492492

493-
// TODO: Currently, just use half of the original size. This needs to be improved in the future.
494-
if m.config.IncrementalUpdate {
495-
allSize = allSize / 2
496-
}
497-
498493
return int64(allSize), dbusutil.ToError(err)
499494
}
500495

0 commit comments

Comments
 (0)