diff options
Diffstat (limited to 'shaping/test/stub.cpp')
| -rw-r--r-- | shaping/test/stub.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shaping/test/stub.cpp b/shaping/test/stub.cpp index f16d351..3af3cf9 100644 --- a/shaping/test/stub.cpp +++ b/shaping/test/stub.cpp @@ -84,11 +84,11 @@ void * stub_get_token_thread_func(void *data) void stub_set_token_bucket_avl_per_sec(int profile_id, unsigned int tokens, unsigned char direction) { if (direction == SHAPING_DIR_IN) { - pf_array[profile_id].in_limit_bandwidth = tokens; - pf_curr_avl_token[profile_id].in_limit_bandwidth = tokens; + pf_array[profile_id].in_limit_bandwidth = tokens * 8; + pf_curr_avl_token[profile_id].in_limit_bandwidth = tokens * 8; } else { - pf_array[profile_id].out_limit_bandwidth = tokens; - pf_curr_avl_token[profile_id].out_limit_bandwidth = tokens; + pf_array[profile_id].out_limit_bandwidth = tokens * 8; + pf_curr_avl_token[profile_id].out_limit_bandwidth = tokens * 8; } return; |
