Changeset: 67c5f6c0cd6c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=67c5f6c0cd6c
Modified Files:
        tools/merovingian/ChangeLog.Feb2013
        tools/merovingian/client/monetdb.c
Branch: Feb2013
Log Message:

status: also print time for crashed state


diffs (26 lines):

diff --git a/tools/merovingian/ChangeLog.Feb2013 
b/tools/merovingian/ChangeLog.Feb2013
--- a/tools/merovingian/ChangeLog.Feb2013
+++ b/tools/merovingian/ChangeLog.Feb2013
@@ -3,7 +3,8 @@
 
 * Fri Nov 30 2012 Fabian Groffen <fab...@monetdb.org>
 - monetdb status now uses a more condensed output, to cater for the uris
-  being shown, and prints how long a database is stopped
+  being shown, and prints how long a database is stopped, or how long
+  ago it crashed
 
 * Wed Nov 21 2012 Fabian Groffen <fab...@monetdb.org>
 - monetdb status now prints the connection uri for each database,
diff --git a/tools/merovingian/client/monetdb.c 
b/tools/merovingian/client/monetdb.c
--- a/tools/merovingian/client/monetdb.c
+++ b/tools/merovingian/client/monetdb.c
@@ -313,6 +313,9 @@ printStatus(sabdb *stats, int mode, int 
                        case SABdbStarting:
                                secondsToString(uptime, time(NULL) - 
uplog.laststart, 1);
                                break;
+                       case SABdbCrashed:
+                               secondsToString(uptime, time(NULL) - 
uplog.lastcrash, 1);
+                               break;
                        case SABdbInactive:
                                if (uplog.laststop != -1) {
                                        secondsToString(uptime, time(NULL) - 
uplog.laststop, 1);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to