ram: We only print throttling information sometimes
Change it to be consistent with everything else. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
		
							parent
							
								
									114f5aee02
								
							
						
					
					
						commit
						338182c83c
					
				| 
						 | 
					@ -616,6 +616,11 @@ static void populate_ram_info(MigrationInfo *info, MigrationState *s)
 | 
				
			||||||
        info->xbzrle_cache->overflow = xbzrle_mig_pages_overflow();
 | 
					        info->xbzrle_cache->overflow = xbzrle_mig_pages_overflow();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (cpu_throttle_active()) {
 | 
				
			||||||
 | 
					        info->has_cpu_throttle_percentage = true;
 | 
				
			||||||
 | 
					        info->cpu_throttle_percentage = cpu_throttle_get_percentage();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (s->state != MIGRATION_STATUS_COMPLETED) {
 | 
					    if (s->state != MIGRATION_STATUS_COMPLETED) {
 | 
				
			||||||
        info->ram->remaining = ram_bytes_remaining();
 | 
					        info->ram->remaining = ram_bytes_remaining();
 | 
				
			||||||
        info->ram->dirty_pages_rate = ram_dirty_pages_rate();
 | 
					        info->ram->dirty_pages_rate = ram_dirty_pages_rate();
 | 
				
			||||||
| 
						 | 
					@ -656,11 +661,6 @@ MigrationInfo *qmp_query_migrate(Error **errp)
 | 
				
			||||||
            info->disk->total = blk_mig_bytes_total();
 | 
					            info->disk->total = blk_mig_bytes_total();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (cpu_throttle_active()) {
 | 
					 | 
				
			||||||
            info->has_cpu_throttle_percentage = true;
 | 
					 | 
				
			||||||
            info->cpu_throttle_percentage = cpu_throttle_get_percentage();
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
    case MIGRATION_STATUS_POSTCOPY_ACTIVE:
 | 
					    case MIGRATION_STATUS_POSTCOPY_ACTIVE:
 | 
				
			||||||
        /* Mostly the same as active; TODO add some postcopy stats */
 | 
					        /* Mostly the same as active; TODO add some postcopy stats */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue