# | Line 393 | Line 393 | sg_disk_io_stats *sg_get_disk_io_stats(int *entries){ | |
---|---|---|
393 | ||
394 | /* We can't seperate the reads from the writes, we'll | |
395 | just give the same to each. */ | |
396 | < | rbytes = wbytes = (di->psd_dkwds * 64); |
396 | > | rbytes = wbytes = di->psd_dkwds / 2; |
397 | ||
398 | /* Skip unused disks. */ | |
399 | if (rbytes == 0 && wbytes == 0) { | |
# | Line 413 | Line 413 | sg_disk_io_stats *sg_get_disk_io_stats(int *entries){ | |
413 | ||
414 | num_diskio++; | |
415 | ||
416 | + | /* FIXME This should use a static cache, like the Linux |
417 | + | * code below. */ |
418 | if (diskio_stats_ptr->disk_name == NULL) { | |
419 | dh = opendir("/dev/dsk"); | |
420 | if (dh == NULL) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |