Record GPU usage information

This records more GPU usage information for eventual UX inclusion.
This commit is contained in:
Daniel Hiltgen
2024-05-04 09:15:31 -07:00
parent 88cf154483
commit bee2f4a3b0
3 changed files with 40 additions and 20 deletions

View File

@@ -53,6 +53,8 @@ func HumanBytes(b int64) string {
func HumanBytes2(b uint64) string {
switch {
case b >= GibiByte:
return fmt.Sprintf("%.1f GiB", float64(b)/GibiByte)
case b >= MebiByte:
return fmt.Sprintf("%.1f MiB", float64(b)/MebiByte)
case b >= KibiByte: