Skip to content

Commit 8cfb943

Browse files
authored
Merge pull request #1198 from winrouter/master
Add InodesUsed and format usedBytes with humansize print in imagefsinfo cmd
2 parents 6a17dcc + 5b6b718 commit 8cfb943

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/crictl/image.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,8 @@ var imageFsInfoCommand = &cli.Command{
497497

498498
// otherwise output in table format
499499
fmt.Printf("TimeStamp: %d\n", info.Timestamp)
500-
fmt.Printf("UsedBytes: %s\n", info.UsedBytes)
500+
fmt.Printf("Disk: %s\n", units.HumanSize(float64(info.UsedBytes.GetValue())))
501+
fmt.Printf("Inodes: %d\n", info.InodesUsed.GetValue())
501502
fmt.Printf("Mountpoint: %s\n", info.FsId.Mountpoint)
502503
}
503504

0 commit comments

Comments
 (0)