Revision ed3d4a80

b/hmp-commands.hx
754 754

  
755 755
    {
756 756
        .name       = "migrate_set_speed",
757
        .args_type  = "value:f",
757
        .args_type  = "value:o",
758 758
        .params     = "value",
759
        .help       = "set maximum speed (in bytes) for migrations",
759
        .help       = "set maximum speed (in bytes) for migrations. "
760
	"Defaults to MB if no size suffix is specified, ie. B/K/M/G/T",
760 761
        .user_print = monitor_user_noop,
761 762
        .mhandler.cmd_new = do_migrate_set_speed,
762 763
    },
b/migration.c
132 132

  
133 133
int do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data)
134 134
{
135
    double d;
135
    int64_t d;
136 136
    FdMigrationState *s;
137 137

  
138
    d = qdict_get_double(qdict, "value");
138
    d = qdict_get_int(qdict, "value");
139 139
    d = MAX(0, MIN(UINT32_MAX, d));
140 140
    max_throttle = d;
141 141

  

Also available in: Unified diff