func (ie interfaceNumericals) Delta(id *types.Interface, ii, previousi InterfaceInfo) { in, out := ie.InOut(ii) previous_in, previous_out := ie.InOut(previousi) id.DeltaIn = ps(in, previous_in) id.DeltaOut = ps(out, previous_out) }
func (_ interfaceBytes) Delta(id *types.Interface, ii, pi InterfaceInfo) { id.DeltaIn = bps(8, ii.InBytes, pi.InBytes) id.DeltaOut = bps(8, ii.OutBytes, pi.OutBytes) }