Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1016598 // Free System Memory [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 5404K of libraries. Click here for Pure Java version (14461L/99K).

1  
!7
2  
3  
sclass FreeSystemMemory extends DynBigNumber {
4  
  bool inGigabytes;
5  
6  
  S switchableFields() { ret 'inGigabytes; }
7  
  
8  
  start {
9  
    setDescription("FREE MEMORY");
10  
    doEveryAndNow(4000, r actualUpdate);
11  
  }
12  
  
13  
  void actualUpdate {
14  
    //time "FSM" { // usually 2 - 15 ms
15  
      setValue(str_toGBorMB(inGigabytes, freeSystemMemory()));
16  
    //}
17  
  }
18  
}

Author comment

Began life as a copy of #1015915

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1016598
Snippet name: Free System Memory [Dyn Module]
Eternal ID of this version: #1016598/11
Text MD5: f8575b2e6d9c3e97638f78bfaf8bd312
Transpilation MD5: 4432780f8cf08f8aa6034d3b199923a5
Author: stefan
Category: javax / modules
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-26 01:46:31
Source code size: 364 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 371 / 58922
Version history: 10 change(s)
Referenced in: [show references]