mirror of
https://github.com/EnumeratedDev/bpm.git
synced 2026-09-16 02:26:12 +00:00
Readd download size to database entry readable info
This commit is contained in:
@@ -520,6 +520,16 @@ func (entry *BPMDatabaseEntry) CreateReadableInfo(rootDir string, showBytes bool
|
|||||||
builder.WriteString("Installation reason: " + installationReasonString + "\n")
|
builder.WriteString("Installation reason: " + installationReasonString + "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Download size
|
||||||
|
downloadSize := entry.DownloadSize
|
||||||
|
var downloadSizeStr string
|
||||||
|
if showBytes {
|
||||||
|
downloadSizeStr = strconv.FormatInt(downloadSize, 10)
|
||||||
|
} else {
|
||||||
|
downloadSizeStr = BytesToHumanReadable(downloadSize)
|
||||||
|
}
|
||||||
|
builder.WriteString("Download size: " + downloadSizeStr + "\n")
|
||||||
|
|
||||||
// Installed size
|
// Installed size
|
||||||
if entry.Info.Type == "binary" {
|
if entry.Info.Type == "binary" {
|
||||||
installedSize := entry.InstalledSize
|
installedSize := entry.InstalledSize
|
||||||
|
|||||||
Reference in New Issue
Block a user