Esempio n. 1
0
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)
}
Esempio n. 2
0
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)
}