diff options
author | Keith Packard <keithp@keithp.com> | 2013-09-02 23:10:23 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-09-02 23:11:52 -0600 |
commit | 528e2e41112cad8a81bccbb89c3bd202b818a506 (patch) | |
tree | 2c2076a5d1972681ba3300e9a44636b526efaa82 /altosui/AltosFlightStatsTable.java | |
parent | 224a1e01bacb7db0076129906ed58e1c785e1b14 (diff) |
altoslib: More AltosState hacking
EasyMini graphs are looking good now.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosFlightStatsTable.java')
-rw-r--r-- | altosui/AltosFlightStatsTable.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/altosui/AltosFlightStatsTable.java b/altosui/AltosFlightStatsTable.java index f8a2d4de..b5a92683 100644 --- a/altosui/AltosFlightStatsTable.java +++ b/altosui/AltosFlightStatsTable.java @@ -76,15 +76,15 @@ public class AltosFlightStatsTable extends JComponent { int y = 0; new FlightStat(layout, y++, "Serial", String.format("%d", stats.serial)); new FlightStat(layout, y++, "Flight", String.format("%d", stats.flight)); - if (stats.year > 0 && stats.hour > 0) + if (stats.year != AltosRecord.MISSING && stats.hour != AltosRecord.MISSING) new FlightStat(layout, y++, "Date/Time", String.format("%04d-%02d-%02d", stats.year, stats.month, stats.day), String.format("%02d:%02d:%02d UTC", stats.hour, stats.minute, stats.second)); else { - if (stats.year > 0) + if (stats.year != AltosRecord.MISSING) new FlightStat(layout, y++, "Date", String.format("%04d-%02d-%02d", stats.year, stats.month, stats.day)); - if (stats.hour > 0) + if (stats.hour != AltosRecord.MISSING) new FlightStat(layout, y++, "Time", String.format("%02d:%02d:%02d UTC", stats.hour, stats.minute, stats.second)); } |