[svn] r4916 - trunk/tools/dstat

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Mon Nov 20 14:41:09 CET 2006


Author: dag
Date: 2006-11-20 14:41:01 +0100 (Mon, 20 Nov 2006)
New Revision: 4916

Modified:
   trunk/tools/dstat/ChangeLog
   trunk/tools/dstat/dstat
Log:
Small visual improvement

Modified: trunk/tools/dstat/ChangeLog
===================================================================
--- trunk/tools/dstat/ChangeLog	2006-11-20 13:17:04 UTC (rev 4915)
+++ trunk/tools/dstat/ChangeLog	2006-11-20 13:41:01 UTC (rev 4916)
@@ -1,6 +1,7 @@
 * 0.6.3svn - ... - released 14/10/2006
 - Fixed dstat_clock to use localtime() instead of gmtime()
 - Added external plugin dstat_vz for openvz cpu statistics
+- Removed the underscoring of the counter titles
 
 * 0.6.3 - Amsterdam - released 26/06/2006
 - Changed default (silver) color of delimiter to gray

Modified: trunk/tools/dstat/dstat
===================================================================
--- trunk/tools/dstat/dstat	2006-11-20 13:17:04 UTC (rev 4915)
+++ trunk/tools/dstat/dstat	2006-11-20 13:41:01 UTC (rev 4916)
@@ -320,14 +320,16 @@
 		if isinstance(self.name, types.StringType):
 			ret = ''
 			for i, nick in enumerate(self.nick):
-				ret = ret + nick.center(self.format[1]).replace(' ', '_')
+#				ret = ret + nick.center(self.format[1]).replace(' ', '_')
+				ret = ret + nick.center(self.format[1])
 				if i + 1 != len(self.nick): ret = ret + char['space']
 			return ansi['blue'] + ret
 		else:
 			ret = ''
 			for i, name in enumerate(self.name):
 				for j, nick in enumerate(self.nick):
-					ret = ret + ansi['blue'] + nick.center(self.format[1]).replace(' ', '_')
+#					ret = ret + ansi['blue'] + nick.center(self.format[1]).replace(' ', '_')
+					ret = ret + ansi['blue'] + nick.center(self.format[1])
 					if j + 1 != len(self.nick): ret = ret + char['space']
 				if i + 1 != len(self.name): ret = ret + ansi['gray'] + char['colon']
 			return ansi['blue'] + ret




More information about the commits mailing list