!7 p-experiment { wordWrapConsole(); L l = oshi_diskStores(); int i = 0; for (HWDiskStore disk : l) { print(); print("Testing disk " + (++i) + "/" + l(l)); print(); printStruct("Disk specs", mapPlus(callGetters(disk, 'name, 'model, 'serial, 'size, 'reads, 'readBytes, 'writes, 'writeBytes, 'transferTime, 'timeStamp), partitions := l(disk.getPartitions()))); pcall-short { long oldReads = disk.getReads(); long oldReadBytes = disk.getReadBytes(); assertTrue("update disk stats", disk.updateDiskStats()); assertTrue(print("new reads", disk.getReads()) >= print("old reads", oldReads)); assertTrue(print("new read bytes", disk.getReadBytes()) >= print("old read bytes", oldReadBytes)); print("Sanity test OK"); } } }