mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-25 15:25:45 +00:00
01f5b89278
Several improvements to the way values are displayed in the PCP platform DynamicMeter implementation: - handle the initial 'caption' setting as with regular meters, this required a new meter callback because we no longer have just a single meter caption for the DynamicMeter case - if no label is provided for a metric in a configuration file use the short form metric name as a fallback - honour the suffix setting in the configuration file - convert metric values to the canonical units for htop (kbyte and seconds), and use Meter_humanUnit when it makes sense to do so. Also improves the handling of fatal string error messages in a couple of places, thanks to BenBE for the review feedback.
22 lines
634 B
Plaintext
22 lines
634 B
Plaintext
#
|
|
# pcp-htop(1) configuration file - see pcp-htop(5)
|
|
#
|
|
|
|
[tcp]
|
|
caption = TCP
|
|
description = TCP sockets
|
|
listen.metric = network.tcpconn.listen
|
|
listen.color = green
|
|
listen.label = lis
|
|
active.metric = network.tcpconn.established
|
|
active.color = blue
|
|
active.label = act
|
|
syn.metric = network.tcpconn.syn_sent + network.tcpconn.syn_recv + network.tcpconn.last_ack
|
|
syn.color = cyan
|
|
wait.metric = network.tcpconn.time_wait
|
|
wait.color = red
|
|
wait.label = tim
|
|
close.metric = network.tcpconn.fin_wait1 + network.tcpconn.fin_wait2 + network.tcpconn.close + network.tcpconn.close_wait + network.tcpconn.closing
|
|
close.color = yellow
|
|
close.label = clo
|