Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27901
Modified Files:
mal_sabaoth.mx
Log Message:
Ok, it makes more sense to use stopcntr, since a) we divide by it, and
b) without a successful stop, you can't say anything about uptime.
Index: mal_sabaoth.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_sabaoth.mx,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- mal_sabaoth.mx 18 Aug 2007 13:03:57 -0000 1.28
+++ mal_sabaoth.mx 18 Aug 2007 13:07:09 -0000 1.29
@@ -704,7 +704,7 @@
ret->crashavg30 += avg30[i];
ret->crashavg30 = ret->crashavg30 / 30.0;
- if (ret->startcntr > 0) {
+ if (ret->stopcntr > 0) {
ret->avguptime = (time_t)(((double)up /
(double)ret->stopcntr) + 0.5);
} else {
ret->avguptime = 0;
-------------------------------------------------------------------------
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