INNER CODE UNIT · Python

setStatus

yohey-w/multi-agent-shogun · scripts/dashboard-viewer.py:179

    function setStatus(ok, text) {
      dot.className = 'dot' + (ok ? '' : ' stale');
      statusText.textContent = text;
    }

    async function poll() {
      try {
        const mtime = await fetchMtime();
        if (mtime !== lastMtime) {
          lastMtime = mtime;
          await render();
          const d = new Date();
          lastUpdated.textContent = 'Updated ' + d.toLocaleTimeString('ja-JP');
        }
        setStatus(true, 'Live');
      } catch (e) {
        setStatus(false, 'Connection error');
      }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…