@@ -539,11 +539,11 @@ func updateCPUUI(cpuMetrics CPUMetrics) {
539539 cpu2Gauge .Title = fmt .Sprintf ("P-CPU Usage: %d%% @ %d MHz" , cpuMetrics .PClusterActive , cpuMetrics .PClusterFreqMHz )
540540 cpu2Gauge .Percent = cpuMetrics .PClusterActive
541541 aneUtil := int (cpuMetrics .ANEW * 100 / 8.0 )
542- aneGauge .Title = fmt .Sprintf ("ANE Usage: %d%% @ %.1f W" , aneUtil , cpuMetrics .ANEW )
542+ aneGauge .Title = fmt .Sprintf ("ANE Usage: %d%% @ %.2f W" , aneUtil , cpuMetrics .ANEW )
543543 aneGauge .Percent = aneUtil
544- TotalPowerChart .Title = fmt .Sprintf ("%.1f W Total Power" , cpuMetrics .PackageW )
545- PowerChart .Title = fmt .Sprintf ("%.1f W CPU - %.1f W GPU" , cpuMetrics .CPUW , cpuMetrics .GPUW )
546- PowerChart .Text = fmt .Sprintf ("CPU Power: %.1f W\n GPU Power: %.1f W\n ANE Power: %.1f W\n Total Power: %.1f W" , cpuMetrics .CPUW , cpuMetrics .GPUW , cpuMetrics .ANEW , cpuMetrics .PackageW )
544+ TotalPowerChart .Title = fmt .Sprintf ("%.2f W Total Power" , cpuMetrics .PackageW )
545+ PowerChart .Title = fmt .Sprintf ("%.2f W CPU - %.2f W GPU" , cpuMetrics .CPUW , cpuMetrics .GPUW )
546+ PowerChart .Text = fmt .Sprintf ("CPU Power: %.2f W\n GPU Power: %.2f W\n ANE Power: %.2f W\n Total Power: %.2f W" , cpuMetrics .CPUW , cpuMetrics .GPUW , cpuMetrics .ANEW , cpuMetrics .PackageW )
547547 memoryMetrics := getMemoryMetrics ()
548548 memoryGauge .Title = fmt .Sprintf ("Memory Usage: %.2f GB / %.2f GB (Swap: %.2f/%.2f GB)" , float64 (memoryMetrics .Used )/ 1024 / 1024 / 1024 , float64 (memoryMetrics .Total )/ 1024 / 1024 / 1024 , float64 (memoryMetrics .SwapUsed )/ 1024 / 1024 / 1024 , float64 (memoryMetrics .SwapTotal )/ 1024 / 1024 / 1024 )
549549 memoryGauge .Percent = int ((float64 (memoryMetrics .Used ) / float64 (memoryMetrics .Total )) * 100 )
0 commit comments