Skip to content

Commit

Permalink
Fix mixed user/total quota params
Browse files Browse the repository at this point in the history
  • Loading branch information
Mészáros Mihály committed May 11, 2018
1 parent 3e18581 commit 2c14c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -6,6 +6,7 @@ Version 4.5.0.8 'dan Eider':
- Fix for Verbose config file option -v cli option overridea
- Add a Notice to config about realm default value is the domain name.
- Update total allocation usage on client shutdown
- fix total and user quota mix-up

12/10/2017 Oleg Moskalenko <mom040267@gmail.com>
Version 4.5.0.7 'dan Eider':
Expand Down
4 changes: 2 additions & 2 deletions src/apps/relay/mainrelay.c
Expand Up @@ -1248,11 +1248,11 @@ static void set_option(int c, char *value)
set_default_realm_name(value);
break;
case 'q':
turn_params.total_quota = (vint)atoi(value);
turn_params.user_quota = (vint)atoi(value);
get_realm(NULL)->options.perf_options.user_quota = atoi(value);
break;
case 'Q':
turn_params.user_quota = (vint)atoi(value);
turn_params.total_quota = (vint)atoi(value);
get_realm(NULL)->options.perf_options.total_quota = atoi(value);
break;
case 's':
Expand Down

0 comments on commit 2c14c76

Please sign in to comment.