Changeset 10536 for trunk/cli/cli.c


Ignore:
Timestamp:
Apr 28, 2010, 1:26:46 AM (12 years ago)
Author:
charles
Message:

(trunk) #3174 "Use IEC standard units (KiB, MiB, GiB) instead of (KB, MB, GB)" -- implemented for gtk, qt, daemon, cli, and web client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/cli.c

    r10240 r10536  
    6262    { 'B', "no-blocklist",         "Disable peer blocklists", "B",  0, NULL        },
    6363    { 'c', "comment",              "Set the new torrent's comment", "c",  1, "<comment>" },
    64     { 'd', "downlimit",            "Set max download speed in KB/s", "d",  1, "<speed>"   },
     64    { 'd', "downlimit",            "Set max download speed in KiB/s", "d",  1, "<speed>"   },
    6565    { 'D', "no-downlimit",         "Don't limit the download speed", "D",  0, NULL        },
    6666    { 910, "encryption-required",  "Encrypt all peer connections", "er", 0, NULL        },
     
    7777    { 's', "scrape",               "Scrape the torrent and exit", "s",  0, NULL        },
    7878    { 't', "tos", "Peer socket TOS (0 to 255, default=" TR_DEFAULT_PEER_SOCKET_TOS_STR ")", "t", 1, "<tos>" },
    79     { 'u', "uplimit",              "Set max upload speed in KB/s", "u",  1, "<speed>"   },
     79    { 'u', "uplimit",              "Set max upload speed in KiB/s", "u",  1, "<speed>"   },
    8080    { 'U', "no-uplimit",           "Don't limit the upload speed", "U",  0, NULL        },
    8181    { 'v', "verify",               "Verify the specified torrent", "v",  0, NULL        },
     
    258258        tr_snprintf(
    259259            buf, buflen,
    260             "Progress: %.1f%%, dl from %d of %d peers (%.0f KB/s), "
    261             "ul to %d (%.0f KB/s) [%s]",
     260            "Progress: %.1f%%, dl from %d of %d peers (%.0f KiB/s), "
     261            "ul to %d (%.0f KiB/s) [%s]",
    262262            tr_truncd( 100 * st->percentDone, 1 ),
    263263            st->peersSendingToUs,
     
    274274        tr_snprintf(
    275275            buf, buflen,
    276             "Seeding, uploading to %d of %d peer(s), %.0f KB/s [%s]",
     276            "Seeding, uploading to %d of %d peer(s), %.0f KiB/s [%s]",
    277277            st->peersGettingFromUs, st->peersConnected,
    278278            st->pieceUploadSpeed, ratioStr );
Note: See TracChangeset for help on using the changeset viewer.