Revision 7373770e src/um/Quota.cc
src/um/Quota.cc | ||
---|---|---|
269 | 269 |
/* -------------------------------------------------------------------------- */ |
270 | 270 |
/* -------------------------------------------------------------------------- */ |
271 | 271 |
|
272 |
void Quota::del_quota(const string& qid, map<string, int>& usage_req)
|
|
272 |
void Quota::del_quota(const string& qid, map<string, float>& usage_req)
|
|
273 | 273 |
{ |
274 | 274 |
VectorAttribute * q; |
275 |
map<string, int>::iterator it;
|
|
275 |
map<string, float>::iterator it;
|
|
276 | 276 |
|
277 | 277 |
if ( get_quota(qid, &q) == -1) |
278 | 278 |
{ |
... | ... | |
309 | 309 |
void Quota::cleanup_quota(const string& qid) |
310 | 310 |
{ |
311 | 311 |
VectorAttribute * q; |
312 |
map<string, int>::iterator it; |
|
313 | 312 |
map<string, Attribute *>::iterator q_it; |
314 | 313 |
|
315 |
int limit, limit_tmp;
|
|
316 |
int usage, usage_tmp;
|
|
314 |
float limit, limit_tmp;
|
|
315 |
float usage, usage_tmp;
|
|
317 | 316 |
|
318 | 317 |
if ( get_quota(qid, &q, q_it) == -1) |
319 | 318 |
{ |
... | ... | |
355 | 354 |
int Quota::update_limits(VectorAttribute * quota, const VectorAttribute * va) |
356 | 355 |
{ |
357 | 356 |
string limit; |
358 |
int limit_i;
|
|
357 |
float limit_i;
|
|
359 | 358 |
|
360 | 359 |
for (int i=0; i < num_metrics; i++) |
361 | 360 |
{ |
Also available in: Unified diff