Changeset: 129f19ebe374 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=129f19ebe374
Modified Files:
        monetdb5/mal/mal_profiler.c
Branch: holindex
Log Message:

Check the CPU load only when the CPU load threshold is  greater 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
@@ -1379,7 +1379,7 @@ void HeartbeatCPUload(void *arg)
         }
 
        if (max_threads > 0){
-               while(1){
+               while(threshold>0){
                        (void) getCPULoad(cpuload);
                        load = corestat[256].load;
                        if ( load >= 0 && load <= 100.0){
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to