Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18904

Modified Files:
        mal_sabaoth.mx 
Log Message:
Fix crashcounter in case the database is still running.


Index: mal_sabaoth.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_sabaoth.mx,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- mal_sabaoth.mx      5 Sep 2007 17:06:16 -0000       1.37
+++ mal_sabaoth.mx      10 Sep 2007 14:02:46 -0000      1.38
@@ -736,7 +736,9 @@
                        memmove(&avg30[0], &avg30[1], sizeof(int) * 29);
                        avg10[9] = avg30[29] = ret->crashavg1 =
                                (start != 0 ? (db->state != SABdbRunning ? 1 : 
0) : 0);
-                       ret->crashcntr = ret->startcntr - ret->stopcntr;
+                       ret->crashcntr =
+                               ret->startcntr - (db->state == SABdbRunning ? 1 
: 0) -
+                               ret->stopcntr;
                        for (i = 0; i < 10; i++)
                                ret->crashavg10 += avg10[i];
                        ret->crashavg10 = ret->crashavg10 / 10.0;


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to