ames: condense message size calculation

Co-authored-by: fang <git@fang.io>
This commit is contained in:
Ted Blackman 2022-06-05 08:49:47 -05:00 committed by GitHub
parent 953273004a
commit d2ea33ddfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2192,8 +2192,9 @@
=. acc
%+ add acc
%+ add
=- (roll - add)
(turn ~(tap to unsent-messages.i.pumps) |=(b=@ (met 3 b)))
%+ roll ~(tap to unsent-messages.i.pumps)
|= [a=@ b=@ud]
(add b (met 3 a))
?~ unsent-fragments.i.pumps
0
(met 3 fragment.i.unsent-fragments.i.pumps)