[svn] r5173 - in trunk/tools/dstat: . plugins

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Thu Feb 15 01:11:50 CET 2007


Author: dag
Date: 2007-02-15 01:11:48 +0100 (Thu, 15 Feb 2007)
New Revision: 5173

Removed:
   trunk/tools/dstat/plugins/dstat_clock.py
Modified:
   trunk/tools/dstat/ChangeLog
Log:
Removed broken dstat_clock plugin

Modified: trunk/tools/dstat/ChangeLog
===================================================================
--- trunk/tools/dstat/ChangeLog	2007-02-14 21:44:18 UTC (rev 5172)
+++ trunk/tools/dstat/ChangeLog	2007-02-15 00:11:48 UTC (rev 5173)
@@ -4,6 +4,7 @@
 - Added module readlines() taking care of seek() and multiple files
 - Improved module exception messages
 - Fixed a problem with strings and CSV output in dstat_time and dstat_app (Vinod Kutty)
+- Removed broken dstat_clock plugin (use dstat_time or dstat_epoch)
 
 * 0.6.4 - Ahoy - released 12/12/2006
 - Fixed dstat_clock to use localtime() instead of gmtime()

Deleted: trunk/tools/dstat/plugins/dstat_clock.py
===================================================================
--- trunk/tools/dstat/plugins/dstat_clock.py	2007-02-14 21:44:18 UTC (rev 5172)
+++ trunk/tools/dstat/plugins/dstat_clock.py	2007-02-15 00:11:48 UTC (rev 5173)
@@ -1,24 +0,0 @@
-### Dstat clock plugin
-### Displays human readable clock
-###
-### Authority: dag at wieers.com
-
-class dstat_clock(dstat):
-	def __init__(self):
-		self.name = 'clock'
-		self.format = ('s', 14, 0)
-		self.nick = ('date/time',)
-		self.vars = self.nick
-
-	def extract(self):
-		pass
-
-	def show(self):
-		if step == op.delay:
-			color = 'silver'
-		else:
-			color = 'gray'
-		t = time.time()
-		return ansi[color] + time.strftime('%d-%m %H:%M:%S', time.localtime(t))
-
-# vim:ts=4:sw=4



More information about the svn-commits mailing list