georgemarselis / openlava-macosx

Automatically exported from code.google.com/p/openlava-macosx
GNU General Public License v2.0
1 stars 0 forks source link

lsf/daemons/limd/policy.c : serious bug in calculating load (2nd bug) #245

Open georgemarselis opened 8 years ago

georgemarselis commented 8 years ago

Line 483:

    if (i == R15S || i == R1M || i == R15M)
    {
        indexpot = ((int)(maxCpus -  (hPtr->uloadIndex[i] + 0.5)) % maxCpus) / resValPtr->val[i];
        if (indexpot < 1) {
            indexpot = 1;
        }

// FIXME FIXME FIXME FIXME FIXME the cast has to go