summary refs log tree commit diff
path: root/cli/list.c
diff options
context:
space:
mode:
authorMarq Schneider <queueRAM@gmail.com>2010-07-29 23:16:42 -0500
committerMarq Schneider <queueRAM@gmail.com>2010-07-29 23:16:42 -0500
commitf366f8969ca70e269449c694549f87e90d76c9fc (patch)
treee645daf5542d9972cf230dd73dd0c5efe2c9c192 /cli/list.c
parent76c49475cea16512cb319a5222f657254f487cc5 (diff)
downloadbtpd-f366f8969ca70e269449c694549f87e90d76c9fc.tar.gz
btpd-f366f8969ca70e269449c694549f87e90d76c9fc.zip
Correct list '%' sequences to match man page.
Diffstat (limited to 'cli/list.c')
-rw-r--r--cli/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/list.c b/cli/list.c
index cca03a6..ed346d2 100644
--- a/cli/list.c
+++ b/cli/list.c
@@ -113,7 +113,7 @@ print_items(struct items* itms, char *format)
                             case 'D': printf("%lld", p->downloaded);     break;
                             case 'H': printf("%u",   p->pieces_have);    break;
                             case 'P': printf("%u",   p->peers);          break;
-                            case 'S': printf("%c",   p->st);             break;
+                            case 'S': printf("%lld", p->csize);          break;
                             case 'U': printf("%lld", p->uploaded);       break;
                             case 'T': printf("%u",   p->torrent_pieces); break;
 
@@ -124,7 +124,7 @@ print_items(struct items* itms, char *format)
                             case 'p': print_percent(p->cgot, p->csize);  break;
                             case 'r': print_ratio(p->totup, p->csize);   break;
                             case 's': print_size(p->csize);              break;
-                            case 't': printf("%lld", p->csize);          break;
+                            case 't': printf("%c",   p->st);             break;
                             case 'u': printf("%lld", p->totup);          break;
                             case 'v': printf("%lld", p->rate_down);      break;