Commit c31c2af0 authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

bugfixes

parent 3a850410
......@@ -58,6 +58,9 @@ Instance::Instance(const string input_file, int convertIndices) {
for(i = 0; i < nbWorkerTypes; i++) {
readArray(input, execTimes[i]);
for(auto &t: execTimes[i])
if(t < 0)
t = numeric_limits<double>::infinity();
}
nbTaskTypes = static_cast<unsigned int>(execTimes[0].size());
......
......@@ -52,8 +52,8 @@ void TrueHeteroPrio::onTaskPush(int task, double now) {
}
double TrueHeteroPrio::compute(Instance &ins, SchedAction *action) {
if(ins.nbTaskTypes != 2) {
cerr << "TrueHeteroPrio: only works with two worker types" << endl;
if(ins.nbWorkerTypes != 2) {
cerr << "TrueHeteroPrio: only works with two worker types, not " << ins.nbWorkerTypes << endl;
throw(1);
}
vector<double> accelFactors(ins.nbTasks);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment