Uses 6315K of libraries. Click here for Pure Java version (4069L/20K).
1 | !7 |
2 | |
3 | compact module Uptime > DynBigNumber { |
4 | transient long upSince; |
5 | |
6 | start { |
7 | setDescription("UPTIME (DD:HH:MM)"); |
8 | upSince = now()-oshi_systemUptime()*1000; |
9 | doEveryAndNow(60.0, r actualUpdate); |
10 | } |
11 | |
12 | void actualUpdate { |
13 | setValue(formatDaysColonHoursColonMinutes(now()-upSince)); |
14 | } |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020549 |
Snippet name: | Uptime [Computer] |
Eternal ID of this version: | #1020549/9 |
Text MD5: | 73e8f4a3128bf918430c5bc668e34e1e |
Transpilation MD5: | 4ff3bb0ac9d84b0ae4112aa33f3cd4b7 |
Author: | stefan |
Category: | |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-02 03:52:43 |
Source code size: | 318 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 272 / 87557 |
Version history: | 8 change(s) |
Referenced in: | [show references] |