Package: dzen2
Version: 0.9.5~svn271-4+b1
Severity: minor

Dear Maintainers, 

I noticed that the doc file "README.kittscanner" refers to a
kittscanner.sh file which is a demonstration of some dzen2 features.
However this file is not part of the dzen2 debian package. To avoid
confusion, the kittscaner.sh file should either be added to the package
(probably along the documentation files) or the README.kittscanner file
should be removed from the docs.

Kind Regards,
Michael Stummvoll
diff --git a/conky-1.10.8/src/linux.cc b/patched/src/linux.cc
index ef39bd0..e4c9fe6 100644
--- a/conky-1.10.8/src/linux.cc
+++ b/patched/src/linux.cc
@@ -408,6 +408,10 @@ int update_net_stats(void)
 		return 0;
 	}
 
+	for (i2 = 0; i2 < MAX_NET_INTERFACES; i2++) {
+		netstats[i].up = false;
+	}
+
 	/* open file /proc/net/dev. If not something went wrong, clear all
 	 * network statistics */
 	if (!(net_dev_fp = open_file("/proc/net/dev", &rep))) {
@@ -686,6 +690,12 @@ int update_net_stats(void)
 	}
 #endif /* BUILD_IPV6 */
 
+	for (i = 0; i < MAX_NET_INTERFACES; i++) {
+		if(netstats[i].dev && !netstats[i].up) {
+			netstats[i].dev = 0;
+		}
+	}
+
 	first = 0;
 
 	fclose(net_dev_fp);

Reply via email to