scope oshi_hadDiskAccess. static L #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