#include #ifdef HAVE_MALLOC_H #include #endif #include "error_numbers.h" #include "sched_msgs.h" #include "hr_info.h" int HR_INFO::write_file() { int i, j; FILE* f = fopen(HR_INFO_FILENAME, "w"); if (!f) return ERR_FOPEN; for (i=1; i1"); if (retval) break; //printf("host %d: %s | %s | %s\n", host.id, host.os_name, host.p_vendor, host.p_model); for (i=1; i 1) { log_messages.printf(SCHED_MSG_LOG::MSG_DEBUG, "type %d class %d: allocating %d slots\n", i, j, n ); } } for (j=0; j= max_slots[hrt][hrc]) { log_messages.printf(SCHED_MSG_LOG::MSG_DEBUG, "skipping job because HR class (%d, %d) full\n", hrt, hrc ); return false; } cur_slots[hrt][hrc]++; } void HR_INFO::show(FILE* f) { for (int ht=1; ht