!7 p-experiment { printJavaVersion(); long n = 0; NotTooOften nto = new(1000); L disks = oshi_diskStores(); while licensed { // Do the deed for (HWDiskStore disk : disks) disk.updateDiskStats(); // Print stats, exit if stuff is out of hand ++n; if (nto.canDoAgain_willDoIfTrue()) { long mb = toM(oshi_currentProcessResidentSize()); print("Updates: " + n + " - process size: " + mb + " MB"); if (mb >= 1024) { print("More than 1 GB used!! Emergency exit."); break; } } } }