File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ type FSSize struct {
27
27
currentTab Tab
28
28
files []File
29
29
folders []File
30
- packages []File // path = package name, sizeBytes = estimated size in kilobytes
30
+ packages []File // path = package name, sizeBytes = estimated size in kibibytes
31
31
maxCount int
32
32
ignoreHiddenFiles bool
33
33
accumulating bool
@@ -282,14 +282,14 @@ func (fssize *FSSize) AccumulatePackages() error {
282
282
panic ("unexpected output from dpkg-query, more than 1 comma in output" )
283
283
}
284
284
packageName := split [1 ]
285
- estimatedKilobytes , err := strconv .Atoi (split [0 ])
285
+ estimatedKibibytes , err := strconv .Atoi (split [0 ])
286
286
if err != nil {
287
287
panic ("unexpected output from dpkg-query, non-number estimated size" )
288
288
}
289
289
290
290
// The ${Installed-Size} format is in estimated KiB
291
291
// https://git.dpkg.org/git/dpkg/dpkg.git/tree/man/deb-substvars.pod#n176
292
- fssize .packages = append (fssize .packages , File {path : packageName , sizeBytes : int64 (estimatedKilobytes ) * 1024 })
292
+ fssize .packages = append (fssize .packages , File {path : packageName , sizeBytes : int64 (estimatedKibibytes ) * 1024 })
293
293
294
294
builder .Reset ()
295
295
continue
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ Use dpkg-query directly, something like this:
126
126
127
127
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn
128
128
129
- This outputs the estimated kilobyte (KiB) size of all packages` )
129
+ This outputs the estimated kibibyte (KiB) size of all packages` )
130
130
}
131
131
132
132
os .Exit (0 )
You can’t perform that action at this time.
0 commit comments