Update of /cvsroot/monetdb/MonetDB5/src/tools
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11630
Modified Files:
monetdb.mx
Log Message:
Also report relative uptime in normal listing.
Index: monetdb.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/tools/monetdb.mx,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- monetdb.mx 24 Aug 2007 10:40:45 -0000 1.9
+++ monetdb.mx 24 Aug 2007 10:50:37 -0000 1.10
@@ -181,19 +181,23 @@
} else if (mode == 2) {
/* long mode */
/* path to database */
+ printf("Sorry, not yet implemented\n");
} else {
/* this is the default, also for modes that are added but we
- * don't understand */
+ * don't understand (yet) */
char buf[64];
char min[8], avg[8], max[8];
struct tm *t;
/* dbname, status -- since, crash averages */
switch (stats->state) {
- case SABdbRunning:
+ case SABdbRunning: {
+ char up[8];
t = localtime(&uplog.laststart);
- strftime(buf, 64, "up since %Y-%m-%d %H:%M:%S",
t);
- break;
+ strftime(buf, 64, "up since %Y-%m-%d %H:%M:%S,
", t);
+ secondsToString(up, time(NULL) -
uplog.laststart);
+ strcat(buf, up);
+ } break;
case SABdbCrashed:
t = localtime(&uplog.lastcrash);
strftime(buf, 64, "crashed on %Y-%m-%d
%H:%M:%S", t);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins