load 79 crmd/throttle.c throttle_cib_load(float *load) load 128 crmd/throttle.c if(load == NULL) { load 131 crmd/throttle.c *load = 0.0; load 182 crmd/throttle.c *load = (delta_utime + delta_stime); /* Cast to a float before division */ load 183 crmd/throttle.c *load /= ticks_per_s; load 184 crmd/throttle.c *load /= elapsed; load 185 crmd/throttle.c crm_debug("cib load: %f (%lu ticks in %lds)", *load, delta_utime + delta_stime, (long)elapsed); load 204 crmd/throttle.c throttle_load_avg(float *load) load 210 crmd/throttle.c if(load == NULL) { load 225 crmd/throttle.c *load = strtof(buffer, NULL); load 247 crmd/throttle.c throttle_check_thresholds(float load, const char *desc, float thresholds[4]) load 249 crmd/throttle.c if (load > thresholds[3]) { load 250 crmd/throttle.c crm_notice("Extreme %s detected: %f", desc, load); load 253 crmd/throttle.c } else if (load > thresholds[2]) { load 254 crmd/throttle.c crm_notice("High %s detected: %f", desc, load); load 257 crmd/throttle.c } else if (load > thresholds[1]) { load 258 crmd/throttle.c crm_info("Moderate %s detected: %f", desc, load); load 261 crmd/throttle.c } else if (load > thresholds[0]) { load 262 crmd/throttle.c crm_debug("Noticeable %s detected: %f", desc, load); load 266 crmd/throttle.c crm_trace("Negligible %s detected: %f", desc, load); load 271 crmd/throttle.c throttle_handle_load(float load, const char *desc, int cores) load 287 crmd/throttle.c thresholds[3] = load + 1.0; /* never extreme */ load 289 crmd/throttle.c return throttle_check_thresholds(load, desc, thresholds); load 296 crmd/throttle.c float load; load 305 crmd/throttle.c if(throttle_cib_load(&load)) { load 332 crmd/throttle.c mode |= throttle_check_thresholds(load, "CIB load", thresholds); load 340 crmd/throttle.c if(throttle_load_avg(&load)) { load 341 crmd/throttle.c crm_debug("Current load is %f across %u core(s)", load, cores); load 342 crmd/throttle.c mode |= throttle_handle_load(load, "CPU load", cores);