Skip to content

Commit

Permalink
Merge pull request #1198 from winrouter/master
Browse files Browse the repository at this point in the history
Add InodesUsed and format usedBytes with humansize print in imagefsinfo cmd
  • Loading branch information
k8s-ci-robot authored Jun 26, 2023
2 parents 6a17dcc + 5b6b718 commit 8cfb943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/crictl/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ var imageFsInfoCommand = &cli.Command{

// otherwise output in table format
fmt.Printf("TimeStamp: %d\n", info.Timestamp)
fmt.Printf("UsedBytes: %s\n", info.UsedBytes)
fmt.Printf("Disk: %s\n", units.HumanSize(float64(info.UsedBytes.GetValue())))
fmt.Printf("Inodes: %d\n", info.InodesUsed.GetValue())
fmt.Printf("Mountpoint: %s\n", info.FsId.Mountpoint)
}

Expand Down

0 comments on commit 8cfb943

Please sign in to comment.