diskperf patch
    Martti Kuparinen 
    martti.kuparinen at iki.fi
       
    Mon Nov 17 09:47:59 CET 2003
    
    
  
Hi!
Here's a small patch for the diskperf-plugin.
Martti
--- panel-plugin/devperf.c.orig	Tue Nov 11 01:00:41 2003
+++ panel-plugin/devperf.c	Mon Nov 17 10:39:35 2003
@@ -292,8 +292,14 @@
 	gettimeofday (&tv, 0);
 	perf->timestamp_ns = (uint64_t)1000ull * 1000ull * 1000ull *
 		tv.tv_sec + 1000ull * tv.tv_usec;
+#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 106110000)
+	/* NetBSD < 1.6K does not have separate read/write statistics. */
+	perf->rbytes = drive.dk_bytes;
+	perf->wbytes = drive.dk_bytes;
+#else
 	perf->rbytes = drive.dk_rbytes;
 	perf->wbytes = drive.dk_wbytes;
+#endif
   /*
    * XXX - Currently, I don't know of any way to determine write/read busy
    * time separatly.
    
    
More information about the Xfce4-dev
mailing list