Changeset: 746124812c54 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=746124812c54
Modified Files:
monetdb5/mal/mal_profiler.c
Branch: holindex
Log Message:
Recalculate the CPU load if it is less than 0.
diffs (12 lines):
diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c
--- a/monetdb5/mal/mal_profiler.c
+++ b/monetdb5/mal/mal_profiler.c
@@ -1373,7 +1373,7 @@ void HeartbeatCPUload(void *arg)
while(1){
(void) getCPULoad(cpuload);
load = corestat[256].load;
- if ( load < threshold){
+ if ( load > 0 && load < threshold){
N = (int) (load * max_threads) / 100.0;
n = max_threads - N;
MRschedule(n, NULL, IdleFunc);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list