Beispiel #1
0
func (ie interfaceNumericals) Current(id *types.Interface, ii InterfaceInfo) {
	in, out := ie.InOut(ii)
	id.In = humanUnitless(uint64(in))
	id.Out = humanUnitless(uint64(out))
}
Beispiel #2
0
func (_ interfaceBytes) Current(id *types.Interface, ii InterfaceInfo) {
	id.In = humanB(uint64(ii.InBytes))
	id.Out = humanB(uint64(ii.OutBytes))
}