diff --git a/cli/transmissioncli.c b/cli/transmissioncli.c index 18622ae5b..c20939dfe 100644 --- a/cli/transmissioncli.c +++ b/cli/transmissioncli.c @@ -174,8 +174,8 @@ int main( int argc, char ** argv ) signal( SIGINT, sigHandler ); tr_setBindPort( h, bindPort ); - tr_setUploadLimit( h, uploadLimit ); - tr_setDownloadLimit( h, downloadLimit ); + tr_setGlobalUploadLimit( h, uploadLimit ); + tr_setGlobalDownloadLimit( h, downloadLimit ); if( natTraversal ) { diff --git a/gtk/dialogs.c b/gtk/dialogs.c index ff188a9bb..a2fa63fe2 100644 --- a/gtk/dialogs.c +++ b/gtk/dialogs.c @@ -364,10 +364,10 @@ void applyprefs(TrBackend *back) { struct { void (*func)(tr_handle_t*, int); const char *use; const char *num; gboolean defuse; long def; } lim[] = { - {tr_setDownloadLimit, PREF_USEDOWNLIMIT, PREF_DOWNLIMIT, - DEF_USEDOWNLIMIT, DEF_DOWNLIMIT}, - {tr_setUploadLimit, PREF_USEUPLIMIT, PREF_UPLIMIT, - DEF_USEUPLIMIT, DEF_UPLIMIT}, + {tr_setGlobalDownloadLimit, PREF_USEDOWNLIMIT, PREF_DOWNLIMIT, + DEF_USEDOWNLIMIT, DEF_DOWNLIMIT}, + {tr_setGlobalUploadLimit, PREF_USEUPLIMIT, PREF_UPLIMIT, + DEF_USEUPLIMIT, DEF_UPLIMIT}, }; const char *pref; int ii;