Uses 3973K of libraries. Click here for Pure Java version (9310L/52K).
scope oshi_hadDiskAccess. static L<HWDiskStore> #disks; static bool oshi_hadDiskAccess() { bool yes; if (disks == null) disks = oshi_diskStores(); for (HWDiskStore disk : unnull(disks)) pcall { long old1 = disk.getReadBytes(); long old2 = disk.getWriteBytes(); assertTrue(disk.updateAttributes()); if (disk.getReadBytes() > old1 || disk.getWriteBytes() > old2) set yes; } yes; } end scope
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016279 |
| Snippet name: | oshi_hadDiskAccess |
| Eternal ID of this version: | #1016279/4 |
| Text MD5: | 6615020e4d11dd61afd20089ef44fdb8 |
| Transpilation MD5: | 22aa135fe89dffb3b00531dbb3fff555 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-06-04 04:52:48 |
| Source code size: | 455 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 643 / 824 |
| Version history: | 3 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |