...
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
module zinit
|
||||
|
||||
|
||||
// Helper function to format memory usage in human-readable format
|
||||
pub fn format_memory_usage(bytes i64) string {
|
||||
if bytes < 1024 {
|
||||
@@ -17,4 +16,4 @@ pub fn format_memory_usage(bytes i64) string {
|
||||
// Helper function to format CPU usage
|
||||
pub fn format_cpu_usage(cpu_percent f64) string {
|
||||
return '${cpu_percent:.1f}%'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user