Libraryless. Click here for Pure Java version (14664L/102K).
!7 sclass CentralRestartBotLog extends DynCalculatedList { L<S> data; transient bool updateRequested; // We are locked already. L<S> calc() { if (!updateRequested && data != null) ret data; updateRequested = false; new MultiSet<S> ms; for (S s : tlft(centralRestartLogSince_raw(unixTime_startOfToday()*1000))) { SS map = parseEqualParameters(s); ms.add(map.get('programID)); } ret setFieldAndReturn(data := mapMultiSet(ms, func(S programID, int count) -> S { programID + ": " + count + " [" + snippetTitle_cached(programID) + "]" })); } void start { super.start(); ownTimer(doEvery(60.0, r uv_refresh)); } // uv = user-visible void uv_refresh() { updateRequested = true; } }
Began life as a copy of #1015978
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015983 |
Snippet name: | Central Restart Bot Log [Dyn Module] |
Eternal ID of this version: | #1015983/8 |
Text MD5: | 9b739a48690fbe637447818c9018a301 |
Transpilation MD5: | 77bc90f7e5649c7e7c0b0dbe3872847c |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-12 18:26:01 |
Source code size: | 795 bytes / 31 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 366 / 62906 |
Version history: | 7 change(s) |
Referenced in: | [show references] |