ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/disk_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/disk_stats.c (file contents):
Revision 1.68 by tdb, Thu Apr 8 14:30:43 2004 UTC vs.
Revision 1.69 by tdb, Sun Jun 20 17:00:25 2004 UTC

# Line 410 | Line 410 | sg_disk_io_stats *sg_get_disk_io_stats(int *entries){
410                  rbytes = stats[i].dk_rbytes;
411                  wbytes = stats[i].dk_wbytes;
412   #else
413 <                /* Before 1.7, NetBSD merged reads and writes. */
413 >                /* Before 2.0, NetBSD merged reads and writes. */
414                  rbytes = wbytes = stats[i].dk_bytes;
415   #endif
416   #else
417 + #ifdef HAVE_DS_RBYTES
418 +                rbytes = stats[i].ds_rbytes;
419 +                wbytes = stats[i].ds_wbytes;
420 + #else
421 +                /* Before 3.5, OpenBSD merged reads and writes */
422                  rbytes = wbytes = stats[i].ds_bytes;
423 + #endif
424   #endif
425  
426                  /* Don't keep stats for disks that have never been used. */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines