From d2ea33ddfeb1a842d3bb4448dfdb87747b6d4dce Mon Sep 17 00:00:00 2001 From: Ted Blackman Date: Sun, 5 Jun 2022 08:49:47 -0500 Subject: [PATCH] ames: condense message size calculation Co-authored-by: fang --- pkg/arvo/sys/vane/ames.hoon | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/arvo/sys/vane/ames.hoon b/pkg/arvo/sys/vane/ames.hoon index 5fdc79af2a..48cfd6b926 100644 --- a/pkg/arvo/sys/vane/ames.hoon +++ b/pkg/arvo/sys/vane/ames.hoon @@ -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)