improve stats reporting
now again use three messages to transmit stats (much more efficient than sending single values, also more acurate).
This commit is contained in:
@@ -51,14 +51,10 @@ NETMSG_MemStats_Write:
|
||||
st X+, r21
|
||||
.endif
|
||||
; current buffers used
|
||||
push xl
|
||||
push xh
|
||||
bigcall NET_Buffer_CountUsed ; (r16, r17, r18, X)
|
||||
pop xh
|
||||
pop xl
|
||||
lds r16, netBuffersUsed
|
||||
st X+, r16
|
||||
; max buffers used
|
||||
clr r16
|
||||
lds r16, netBuffersMaxUsed
|
||||
st X+, r16
|
||||
; no buffer errors
|
||||
ldd r16, Y+NET_IFACE_OFFS_ERR_NOBUF_LOW
|
||||
|
||||
Reference in New Issue
Block a user