result = directJava("#216") -- GetNumberOfProcessors.java --print(type(result)) procs = result() print("Number of processors on this machine: "..procs) print(type(procs)) if type(procs) == 'number' and procs >= 1 then print 'OK!' end
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
1 comment(s) hidden. show
Recognizer | Recognition Result | Visualize | Recalc |
---|---|---|---|
#308 | 238 | [visualize] |
Snippet ID: | #217 |
Snippet name: | Test for directJava |
Eternal ID of this version: | #217/1 |
Text MD5: | cbf5be19914a8f99e1cba989ff3cabfe |
Author: | stefan |
Category: | general tests |
Type: | Lua code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2014-02-01 15:58:20 |
Source code size: | 238 bytes / 6 lines |
Pitched / IR pitched: | Yes / Yes |
Views / Downloads: | 1172 / 292 |
Referenced in: | [show references] |