about summary refs log tree commit diff
path: root/cli/btcli.c
diff options
context:
space:
mode:
authorMarq Schneider <queueRAM@gmail.com>2010-08-11 22:37:51 -0500
committerMarq Schneider <queueRAM@gmail.com>2010-08-11 22:37:51 -0500
commit64060294ab58dfd07a95a24a1500602421748da9 (patch)
treeec61cfce0fd1f4a7a8fa7c00168e38a1bd481ed3 /cli/btcli.c
parent033b776ab28e616fd9217087a50252297394a4ca (diff)
downloadbtpd-64060294ab58dfd07a95a24a1500602421748da9.tar.gz
btpd-64060294ab58dfd07a95a24a1500602421748da9.zip
Allow changing the upload and download rates at runtime.
This adds a 'rate' command to modify the up and download
rates on the fly.

Closes GH-10
Diffstat (limited to 'cli/btcli.c')
-rw-r--r--cli/btcli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/btcli.c b/cli/btcli.c
index bc1fb80..8d1aada 100644
--- a/cli/btcli.c
+++ b/cli/btcli.c
@@ -114,6 +114,7 @@ static struct {
     { "del", cmd_del, usage_del },
     { "kill", cmd_kill, usage_kill },
     { "list", cmd_list, usage_list },
+    { "rate", cmd_rate, usage_rate },
     { "start", cmd_start, usage_start },
     { "stop", cmd_stop, usage_stop },
     { "stat", cmd_stat, usage_stat }
@@ -141,6 +142,7 @@ usage(void)
         "del\t- Remove torrents from btpd.\n"
         "kill\t- Shut down btpd.\n"
         "list\t- List torrents.\n"
+        "rate\t- Set up/download rate limits.\n"
         "start\t- Activate torrents.\n"
         "stat\t- Display stats for active torrents.\n"
         "stop\t- Deactivate torrents.\n"