control/mirror: Use uint64_t and strtoull to get max_Bps into the mirror

This commit is contained in:
nick
2013-08-13 12:30:18 +01:00
parent 7128fcc901
commit cc468b0b17
3 changed files with 18 additions and 10 deletions

View File

@@ -73,7 +73,7 @@ struct mirror {
/* Not used yet. Will be a limiter, used to restrict migration speed.
* only dirty bytes (those going over the network) will be considered */
off64_t max_bytes_per_second;
uint64_t max_bytes_per_second;
enum mirror_finish_action action_at_finish;
@@ -124,8 +124,8 @@ struct mirror_super * mirror_super_create(
const char * filename,
union mysockaddr * connect_to,
union mysockaddr * connect_from,
int max_Bps,
int action_at_finish,
uint64_t max_Bps,
enum mirror_finish_action action_at_finish,
struct mbox * state_mbox
);
void * mirror_super_runner( void * serve_uncast );