audit: Fix merrs and derrs object dangling message (#18714)

merrs and derrs are empty when a dangling object is deleted. Fix the bug
and adds invalid-meta data for data blocks
This commit is contained in:
Anis Eleuch
2023-12-27 22:27:04 -08:00
committed by GitHub
parent fbd8dfe60f
commit 8a0ba093dd
4 changed files with 50 additions and 28 deletions
+1 -2
View File
@@ -19,7 +19,6 @@ package cmd
import (
"fmt"
"math"
"runtime"
"strings"
"time"
@@ -64,7 +63,7 @@ func colorizeUpdateMessage(updateString string, newerThan string) string {
line2InColor := fmt.Sprintf(msgLine2Fmt, color.CyanBold(updateString))
// calculate the rectangular box size.
maxContentWidth := int(math.Max(float64(line1Length), float64(line2Length)))
maxContentWidth := max(line1Length, line2Length)
// termWidth is set to a default one to use when we are
// not able to calculate terminal width via OS syscalls