• Jamal Hadi Salim's avatar
    actions: BugFix action stats to display with -s · 954de6c7
    Jamal Hadi Salim authored
    Was broken by commit 288abf51
    Lets not be too clever and have a separate call to print flushed
    actions info.
    
    Broken looks like:
    root@moja-1:~# tc actions add  action drop index 4
    root@moja-1:~# tc -s actions ls action gact
    
        action order 0: gact action drop
         random type none pass val 0
         index 4 ref 1 bind 0 installed 9 sec used 4 sec
    
    The fixed version looks like:
        action order 0: gact action drop
         random type none pass val 0
         index 4 ref 1 bind 0 installed 9 sec used 4 sec
             Sent 108948 bytes 1297 pkts (dropped 1297, overlimits 0)
    Signed-off-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
    954de6c7
m_action.c 13.7 KB