From 1f6a0191267c26c25c1a10d4c3ae42b13ef01674 Mon Sep 17 00:00:00 2001 From: Logan Lamb Date: Mon, 14 Aug 2023 20:05:58 +0000 Subject: [PATCH] add mcache tx seq to monitor --- src/app/fdctl/monitor/helper.c | 6 +++--- src/app/fdctl/monitor/monitor.c | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/fdctl/monitor/helper.c b/src/app/fdctl/monitor/helper.c index ce0014505a..1aa833b0d0 100644 --- a/src/app/fdctl/monitor/helper.c +++ b/src/app/fdctl/monitor/helper.c @@ -112,9 +112,9 @@ printf_seq( char ** buf, : (delta>0L) ? TEXT_GREEN /* new sequence numbers published */ : (seq_now) ? TEXT_RED /* sequence number went backward */ : TEXT_BLUE; /* sequence number reset */ - if( delta> 99999L ) PRINT( "%16lx(%s>+99999" TEXT_NORMAL ")", seq_now, color ); - else if( delta<-99999L ) PRINT( "%16lx(%s<-99999" TEXT_NORMAL ")", seq_now, color ); - else PRINT( "%16lx(%s %+6li" TEXT_NORMAL ")", seq_now, color, delta ); + if( delta> 99999L ) PRINT( "%10lu(%s>+99999" TEXT_NORMAL ")", seq_now, color ); + else if( delta<-99999L ) PRINT( "%10lu(%s<-99999" TEXT_NORMAL ")", seq_now, color ); + else PRINT( "%10lu(%s %+6li" TEXT_NORMAL ")", seq_now, color, delta ); } void diff --git a/src/app/fdctl/monitor/monitor.c b/src/app/fdctl/monitor/monitor.c index c0e7f5ec1d..71e5f4b2b1 100644 --- a/src/app/fdctl/monitor/monitor.c +++ b/src/app/fdctl/monitor/monitor.c @@ -334,8 +334,8 @@ run_monitor( config_t * const config, PRINT( TEXT_NEWLINE ); } PRINT( TEXT_NEWLINE ); - PRINT( " link | tot TPS | tot bps | uniq TPS | uniq bps | ha tr%% | uniq bw%% | filt tr%% | filt bw%% | ovrnp cnt | ovrnr cnt | slow cnt" TEXT_NEWLINE ); - PRINT( "----------------+----------+----------+----------+----------+----------+----------+----------+----------+---------------------+---------------------+---------------------" TEXT_NEWLINE ); + PRINT( " link | tot TPS | tot bps | uniq TPS | uniq bps | ha tr%% | uniq bw%% | filt tr%% | filt bw%% | ovrnp cnt | ovrnr cnt | slow cnt | tx seq" TEXT_NEWLINE ); + PRINT( "----------------+----------+----------+----------+----------+----------+----------+----------+----------+---------------------+---------------------+---------------------+-------------------" TEXT_NEWLINE ); long dt = now-then; for( ulong link_idx=0UL; link_idxfseq_diag_ovrnp_cnt, prv->fseq_diag_ovrnp_cnt ); PRINT( " | " ); printf_err_cnt( &buf, &buf_sz, cur->fseq_diag_ovrnr_cnt, prv->fseq_diag_ovrnr_cnt ); PRINT( " | " ); printf_err_cnt( &buf, &buf_sz, cur->fseq_diag_slow_cnt, prv->fseq_diag_slow_cnt ); + PRINT( " | " ); printf_seq( &buf, &buf_sz, cur->mcache_seq, prv->mcache_seq ); PRINT( TEXT_NEWLINE ); }