interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / om / hive-page / fresh.om

18 lines · 545 bytes Raw Blame History
1note Scalar OSC IR v1 unit. Threshold is passed from the shared feed contract.
2note Inputs are integer milliseconds; JS rounds fractional elapsed age upward,
3note preserving the strict stale comparison against the integer threshold.
4note Backwards source timestamps retain priority over an interrupted fetch.
5fn fresh now_ms long gen_ms long prev_ms long stale_ms long fetch_ok bool to uint
6if lt gen_ms prev_ms
7ret uint 2
8end
9if not fetch_ok
10ret uint 3
11end
12if gt now_ms gen_ms
13if gt sub now_ms gen_ms stale_ms
14ret uint 1
15end
16end
17ret uint 0
18end