When you get a new port status, save the value in a variable. When you get the next one, look at the difference between the new one and the stored one (and then save the value of the new one).
-- Murphy On Jan 5, 2014, at 5:06 PM, Dhanu <dhan...@gmail.com> wrote: > Hi all > > Portstatus only show statistic at that time so, How to calculate the > increment of packet that flow on each port? > in other word, how to find the difference between two consecutive reading of > tx_packets at the same port? > > > Thanks > Dhanu