Revision 8c1dacab src/um/Quota.cc

View differences:

src/um/Quota.cc
60 60
/* -------------------------------------------------------------------------- */
61 61
/* -------------------------------------------------------------------------- */
62 62

  
63
void Quota::add_to_quota(VectorAttribute * attr, const string& va_name, int num)
63
void Quota::add_to_quota(VectorAttribute * attr, const string& va_name, float num)
64 64
{
65 65
    istringstream iss;
66 66
    ostringstream oss;
......
151 151
/* -------------------------------------------------------------------------- */
152 152

  
153 153
bool Quota::check_quota(const string& qid, 
154
                        map<string, int>& usage_req, 
154
                        map<string, float>& usage_req,
155 155
                        string& error)
156 156
{
157 157
    VectorAttribute * q;
158
    map<string, int>::iterator it;
158
    map<string, float>::iterator it;
159 159

  
160 160
    bool check;
161
    int  limit;
162
    int  usage;
161
    float limit;
162
    float usage;
163 163

  
164 164
    if ( get_quota(qid, &q) == -1 )
165 165
    {

Also available in: Unified diff