diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-03 13:19:12 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2025-02-03 12:40:37 +0000 |
| commit | 452586e84ad54ca23dee399bf9809c49e7171f36 (patch) | |
| tree | 7db1a71ec3a10cf390a75d8ed1107655363e8e8c /apt-pkg/depcache.cc | |
| parent | c303750ecb89b7210fe998515432e358b3cc0cff (diff) | |
Measure BootSize as integer
I don't know why I used a double here this is awkward.
Diffstat (limited to 'apt-pkg/depcache.cc')
| -rw-r--r-- | apt-pkg/depcache.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index c8999093b..ef93a54bb 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -2638,7 +2638,7 @@ bool pkgDepCache::PhasingApplied(pkgCache::PkgIterator Pkg) const /*}}}*/ // DepCache::BootSize /*{{{*/ -double pkgDepCache::BootSize(bool initrdOnly) +unsigned long long pkgDepCache::BootSize(bool initrdOnly) { int BootCount = 0; auto VirtualKernelPkg = FindPkg("$kernel", "any"); @@ -2681,6 +2681,6 @@ double pkgDepCache::BootSize(bool initrdOnly) sizes[type] = std::max(sizes[type], st.st_size); } closedir(boot); - return std::accumulate(sizes, sizes + MAX_ARTEFACT, off_t{0}) * 1.1 * BootCount; + return std::accumulate(sizes, sizes + MAX_ARTEFACT, off_t{0}) * BootCount * 110 / 100; } /*}}}*/ |
