Revision ea876146 src/host/Host.cc

View differences:

src/host/Host.cc
248 248
                      bool            &with_vm_info,
249 249
                      set<int>        &lost,
250 250
                      map<int,string> &found,
251
                      set<int>        &found_twice,
251 252
                      const set<int>  &non_shared_ds,
252 253
                      long long       reserved_cpu,
253 254
                      long long       reserved_mem)
......
271 272

  
272 273
    set<int> prev_tmp_lost   = tmp_lost_vms;
273 274
    set<int> prev_tmp_zombie = tmp_zombie_vms;
275
    set<int> prev_tmp_found  = tmp_found_vms;
274 276

  
275 277
    int num_zombies = 0;
276 278
    int num_wilds   = 0;
......
337 339

  
338 340
    tmp_zombie_vms.clear();
339 341

  
342
    tmp_found_vms.clear();
343

  
340 344
    for (it = vm_att.begin(); it != vm_att.end(); it++)
341 345
    {
342 346
        vatt = dynamic_cast<VectorAttribute*>(*it);
......
362 366
            if (tmp_lost_vms.erase(vmid) == 1) //Good, known
363 367
            {
364 368
                found.insert(make_pair(vmid, vatt->vector_value("POLL")));
369

  
370
                tmp_found_vms.insert(vmid);
371

  
372
                if (prev_tmp_found.count(vmid) == 1)
373
                {
374
                    found_twice.insert(vmid);
375
                }
365 376
            }
366 377
            else //Bad, known but should not be here
367 378
            {

Also available in: Unified diff