mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 03:23:09 +03:00
docket: don't report charges which are %dead with no agents
This commit is contained in:
parent
2829f5b354
commit
2317933e00
@ -191,13 +191,21 @@
|
||||
==
|
||||
::
|
||||
[%x %charges ~]
|
||||
=/ tyr
|
||||
.^(rock:tire:clay %cx /(scot %p our.bowl)//(scot %da now.bowl)/tire)
|
||||
:- ~ :- ~
|
||||
%- charge-update:cg
|
||||
:- %initial
|
||||
%- ~(gas by *(map desk charge))
|
||||
%+ turn ~(tap by charges)
|
||||
%+ murn ~(tap by charges)
|
||||
|= [=desk =charge]
|
||||
[desk (get-light-charge charge)]
|
||||
?~ got=(~(get by tyr) desk)
|
||||
~
|
||||
?: ?& ?=(%dead zest.u.got)
|
||||
?=(~ (get-apps-have:hood our.bowl desk now.bowl))
|
||||
==
|
||||
~
|
||||
`u=[desk (get-light-charge charge)]
|
||||
::
|
||||
[%x %charges @ %version ~]
|
||||
?~ charge=(~(get by charges) i.t.t.path)
|
||||
|
Loading…
Reference in New Issue
Block a user