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

6
LINES

< > BotCompany Repo | #1014285 // pgauge_showSystemLoad

JavaX fragment (include)

static void pgauge_showSystemLoad(PGauge gauge, S title, double value) {
  if (value < 0)
    gauge.setValue(0, "ERROR");
  else
    gauge.setValue(100*value, formatDoubleFull(value, 1) + " - " + title);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014285
Snippet name: pgauge_showSystemLoad
Eternal ID of this version: #1014285/3
Text MD5: 4e1f75827e133ae59ece3ec3a5192f51
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-20 01:01:16
Source code size: 210 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 370 / 388
Version history: 2 change(s)
Referenced in: [show references]