--- projects/libstatgrab/src/libstatgrab/disk_stats.c 2004/11/06 15:33:40 1.76 +++ projects/libstatgrab/src/libstatgrab/disk_stats.c 2004/11/06 15:36:29 1.77 @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * - * $Id: disk_stats.c,v 1.76 2004/11/06 15:33:40 ats Exp $ + * $Id: disk_stats.c,v 1.77 2004/11/06 15:36:29 ats Exp $ */ #ifdef HAVE_CONFIG_H @@ -413,6 +413,8 @@ sg_disk_io_stats *sg_get_disk_io_stats(int *entries){ num_diskio++; + /* FIXME This should use a static cache, like the Linux + * code below. */ if (diskio_stats_ptr->disk_name == NULL) { dh = opendir("/dev/dsk"); if (dh == NULL) {