Posted by jakey_bakey 3 days ago
while(true) {
if(
(date.today() - date(this.system.uptime) >= 51)
&& !this.sys.isFlying
) {
this.sys.resetNow();
}
time.sleep(1000);
}
=> 4406400000
2^32
=> 4294967296
the coincidence seems unlikely, it's basically ~~5 hours and a half~~ 30 hours of difference if one has a 1-ms counter increment
Must be a northwest washington thing.
>>> round((4406400000 - 2**32)/(1000 * 3600), 3)
30.954
So if you have something that checks the system health every millisecond, and keeps a count instead of a duration, then if it takes a couple microseconds to complete you might get something less than 86 million ticks per day instead of 86.4 million.
You don't base the start of a future task on the end of the prior one, you base it on a fixed clock for these kinds of systems.
(4406400000 - 1.025*2 ^ 32)/1000
so a difference of 1.12 hours with the "51 days" mention.Boeing engineers/builders caught on audio stating they wouldn’t be caught dead in their own planes unless feeling suicidal.
Despite their ever increasing incompetence on delivery speed, test compliance, and innovation... commercial air travel with Boeing (and other major air manufacturers) has always been one of, if not the, safest mechanisms of travel we've ever executed on. Particularly the last 5 years have been the safest period in terms of air travel deaths or injuries.
None of that means we shouldn't criticize Boeing by any means, just that doing it over perceived death and accident counts because of what news headlines imply is complete nonsense in terms of actual numbers no matter how you slice it. It's important those kinds of things are reported but it's equally important to not get swept up in paranoia over it.