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.66 by tdb, Wed Apr 7 19:26:16 2004 UTC vs.
Revision 1.67 by ats, Thu Apr 8 13:44:44 2004 UTC

# Line 253 | Line 253 | sg_fs_stats *sg_get_fs_stats(int *entries){
253  
254   }
255  
256 + int sg_fs_compare_device_name(const void *va, const void *vb) {
257 +        const sg_fs_stats *a = (const sg_fs_stats *)va;
258 +        const sg_fs_stats *b = (const sg_fs_stats *)vb;
259 +
260 +        return strcmp(a->device_name, b->device_name);
261 + }
262 +
263 + int sg_fs_compare_mnt_point(const void *va, const void *vb) {
264 +        const sg_fs_stats *a = (const sg_fs_stats *)va;
265 +        const sg_fs_stats *b = (const sg_fs_stats *)vb;
266 +
267 +        return strcmp(a->mnt_point, b->mnt_point);
268 + }
269 +
270   static void diskio_stat_init(sg_disk_io_stats *d) {
271          d->disk_name = NULL;
272   }
# Line 749 | Line 763 | sg_disk_io_stats *sg_get_disk_io_stats_diff(int *entri
763  
764          *entries = diff_count;
765          return diff;
766 + }
767 +
768 + int sg_disk_io_compare_name(const void *va, const void *vb) {
769 +        const sg_disk_io_stats *a = (const sg_disk_io_stats *)va;
770 +        const sg_disk_io_stats *b = (const sg_disk_io_stats *)vb;
771 +
772 +        return strcmp(a->disk_name, b->disk_name);
773   }
774  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines