Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kisielk
maui-3.2.6p21
maui-fairshare-one-minus-used-over-target.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File maui-fairshare-one-minus-used-over-target.patch of Package maui-3.2.6p21
diff -uNr maui-3.2.6p16.ORIG/src/moab/MPriority.c maui-3.2.6p16/src/moab/MPriority.c --- maui-3.2.6p16.ORIG/src/moab/MPriority.c 2006-05-23 23:20:46.000000000 +0100 +++ maui-3.2.6p16/src/moab/MPriority.c 2006-08-30 12:02:16.000000000 +0100 @@ -869,9 +869,9 @@ if (FSTargetUsage > 0.0) { - SFactor[mpsFU] = FSTargetUsage - - (J->Cred.U->F.FSUsage[0] + J->Cred.U->F.FSFactor) / - (GP->F.FSUsage[0] + GP->F.FSFactor) * 100.0; + SFactor[mpsFU] = 1.0 - + (((J->Cred.U->F.FSUsage[0] + J->Cred.U->F.FSFactor) / + (GP->F.FSUsage[0] + GP->F.FSFactor) * 100.0)/FSTargetUsage); switch(FSMode) { @@ -905,9 +905,9 @@ if (FSTargetUsage > 0.0) { - SFactor[mpsFG] = FSTargetUsage - - (J->Cred.G->F.FSUsage[0] + J->Cred.G->F.FSFactor) / - (GP->F.FSUsage[0] + GP->F.FSFactor) * 100.0; + SFactor[mpsFG] = 1.0 - + (((J->Cred.G->F.FSUsage[0] + J->Cred.G->F.FSFactor) / + (GP->F.FSUsage[0] + GP->F.FSFactor) * 100.0)/ FSTargetUsage ); switch(FSMode) { @@ -941,9 +941,9 @@ { if (J->Cred.A != NULL) { - SFactor[mpsFA] = FSTargetUsage - - (J->Cred.A->F.FSUsage[0] + J->Cred.A->F.FSFactor) / - (GP->F.FSUsage[0] + GP->F.FSFactor) * 100.0; + SFactor[mpsFA] = 1.0 - + (((J->Cred.A->F.FSUsage[0] + J->Cred.A->F.FSFactor) / + (GP->F.FSUsage[0] + GP->F.FSFactor) * 100.0)/FSTargetUsage); } else { @@ -981,9 +981,9 @@ { if (J->Cred.C != NULL) { - SFactor[mpsFC] = FSTargetUsage - - (J->Cred.C->F.FSUsage[0] + J->Cred.C->F.FSFactor) / - (GP->F.FSUsage[0] + GP->F.FSFactor) * 100.0; + SFactor[mpsFC] = 1.0 - + (((J->Cred.C->F.FSUsage[0] + J->Cred.C->F.FSFactor) / + (GP->F.FSUsage[0] + GP->F.FSFactor) * 100.0)/FSTargetUsage); } else { @@ -1021,9 +1021,9 @@ { if (J->Cred.Q != NULL) { - SFactor[mpsFQ] = FSTargetUsage - - (J->Cred.Q->F.FSUsage[0] + J->Cred.Q->F.FSFactor) / - (GP->F.FSUsage[0] + GP->F.FSFactor) * 100.0; + SFactor[mpsFQ] = 1.0 - + (((J->Cred.Q->F.FSUsage[0] + J->Cred.Q->F.FSFactor) / + (GP->F.FSUsage[0] + GP->F.FSFactor) * 100.0)/FSTargetUsage); } else {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor