@@ -313,7 +313,10 @@ fn render_cpu(f: &mut Frame, area: Rect, state: &AppState) {
313313 lines. push ( Line :: from ( overall) ) ;
314314
315315 lines. push ( Line :: from ( Span :: styled (
316- format ! ( "Cores: {} Freq: {}" , state. cpu_cores, state. cpu_freq) ,
316+ format ! (
317+ "Cores: {} Total: {:.0}% Freq: {}" ,
318+ state. cpu_cores, state. cpu_total_pct, state. cpu_freq
319+ ) ,
317320 Style :: default ( ) . fg ( Color :: DarkGray ) ,
318321 ) ) ) ;
319322 lines. push ( Line :: from ( "" ) ) ;
@@ -396,10 +399,21 @@ fn render_mem(f: &mut Frame, area: Rect, state: &AppState) {
396399 swap_line. extend ( swap_bar) ;
397400 swap_line. push ( Span :: styled ( format ! ( " {:5.1}%" , swap_pct) , Style :: default ( ) . fg ( Color :: DarkGray ) ) ) ;
398401 lines. push ( Line :: from ( swap_line) ) ;
399- lines. push ( Line :: from ( format ! (
400- " {} used / {}" ,
401- fmt_bytes( state. swap_used as f64 ) ,
402- fmt_bytes( state. swap_total as f64 )
402+ lines. push ( Line :: from ( Span :: styled (
403+ format ! (
404+ " {} used / {}" ,
405+ fmt_bytes( state. swap_used as f64 ) ,
406+ fmt_bytes( state. swap_total as f64 )
407+ ) ,
408+ Style :: default ( ) . fg ( Color :: DarkGray ) ,
409+ ) ) ) ;
410+ lines. push ( Line :: from ( Span :: styled (
411+ format ! (
412+ " {} avail Cache: {}" ,
413+ fmt_bytes( state. ram_available as f64 ) ,
414+ fmt_bytes( state. ram_cached as f64 )
415+ ) ,
416+ Style :: default ( ) . fg ( Color :: DarkGray ) ,
403417 ) ) ) ;
404418
405419 let block = styled_block ( "Memory" , theme. mem ) ;
0 commit comments