Changeset: 999a23f76eac for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=999a23f76eac
Modified Files:
monetdb5/scheduler/mut_policy.c
monetdb5/scheduler/mut_util.c
Branch: mutation
Log Message:
make sure we also handle execution times > 35 min correctly
Thanks to Microsoft Visual Studio C compiler for pointing this out!
diffs (24 lines):
diff --git a/monetdb5/scheduler/mut_policy.c b/monetdb5/scheduler/mut_policy.c
--- a/monetdb5/scheduler/mut_policy.c
+++ b/monetdb5/scheduler/mut_policy.c
@@ -54,7 +54,7 @@ mutationCandidate(InstrPtr p){
* in a parallel MAL block
*/
static int
-MUTfindtarget(Client cntxt, Mutant m, int threshold, int upperbound)
+MUTfindtarget(Client cntxt, Mutant m, lng threshold, lng upperbound)
{
MalBlkPtr src = m->src;
int i,target = -1;
diff --git a/monetdb5/scheduler/mut_util.c b/monetdb5/scheduler/mut_util.c
--- a/monetdb5/scheduler/mut_util.c
+++ b/monetdb5/scheduler/mut_util.c
@@ -82,7 +82,7 @@ MUTupdateRateOfFall(Client cntxt, Mutant
}
queryTotalTime = mutant->totalQueryTime;
prevQueryTotalTime = mutant->next->totalQueryTime;
- diffTime = abs(queryTotalTime - prevQueryTotalTime);
+ diffTime = llabs(queryTotalTime - prevQueryTotalTime);
if(queryTotalTime >= prevQueryTotalTime)
baseTime = queryTotalTime;
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list