From 92b6345f3e6b35e1eaef760261819d7f07517b6e Mon Sep 17 00:00:00 2001 From: annabunches Date: Thu, 5 Aug 2021 22:15:05 -0400 Subject: [PATCH] Bug fixes. --- boot/satellite.ks | 4 ++-- prog/nodestats.ks | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/boot/satellite.ks b/boot/satellite.ks index 73ff62f..e650bf2 100644 --- a/boot/satellite.ks +++ b/boot/satellite.ks @@ -5,13 +5,13 @@ parameter debug is false. local compiled is list( "/lib/navigation", "/lib/node", - "/lib/throttle" + "/lib/throttle", + "/prog/nodestats", ). local copied is list( "/lib/ui", "/prog/execnode", - "/prog/nodestats", "/prog/circ" ). diff --git a/prog/nodestats.ks b/prog/nodestats.ks index 2b24b4a..f3b1b5a 100644 --- a/prog/nodestats.ks +++ b/prog/nodestats.ks @@ -2,14 +2,14 @@ runoncepath("/lib/node"). -if not HASNODE { +if HASNODE { + print "Node dV: " + NEXTNODE:DELTAV:MAG. + print "Burn time: " + BurnTime(NEXTNODE:DELTAV:MAG). + print "Lead time: " + BurnTime(NEXTNODE:DELTAV:MAG / 2). + print "Node UT: " + NEXTNODE:TIME. + print "Node ETA: " + NEXTNODE:ETA. + local stageStatus is choose "yes" if WillStage(NEXTNODE:DELTAV:MAG) else "no". + print "Will stage? " + stageStatus. +} else { print "No node planned.". - return. } - -print "Node dV: " + NEXTNODE:DELTAV:MAG. -print "Burn time: " + BurnTime(NEXTNODE:DELTAV:MAG). -print "Lead time: " + BurnTime(NEXTNODE:DELTAV:MAG / 2). -print "Node UT: " + NEXTNODE:TIME. -print "Node ETA: " + NEXTNODE:ETA. -print "Will stage? " + choose "yes" if WillStage(NEXTNODE:DELTAV:MAG) else "no".