Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Containers/Guarantees for resources

108 bytes added, 17:46, 18 September 2006
m
Changed the algorithm to compile and give correct results
{
int sum;
int i;
 
if (N == 1) {
l[0] = R;
return;
}
sum = 0;
sum += R - g[i];
for (i = 0; i < N; i++)
l[i] = (sum - (R - g[i]) - (N - 2) * (R - g[i]))/(N - 1);
}
</pre>
5
edits