Changeset 12281


Ignore:
Timestamp:
Mar 31, 2011, 4:08:31 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) save 48 bytes per tr_torrent object. whoo!

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.h

    r12280 r12281  
    200200    struct tr_bandwidth          bandwidth;
    201201
    202     double                       desiredRatio;
     202    float                        desiredRatio;
    203203
    204204    uint16_t                     idleLimitMinutes;
  • trunk/libtransmission/torrent.h

    r12280 r12281  
    210210
    211211    uint64_t                   etaDLSpeedCalculatedAt;
    212     double                     etaDLSpeed_KBps;
     212    float                      etaDLSpeed_KBps;
    213213    uint64_t                   etaULSpeedCalculatedAt;
    214     double                     etaULSpeed_KBps;
     214    float                      etaULSpeed_KBps;
    215215
    216216    time_t                     addedDate;
     
    258258    struct tr_torrent_peers  * torrentPeers;
    259259
    260     double                     desiredRatio;
     260    float                      desiredRatio;
    261261    tr_ratiolimit              ratioLimitMode;
    262262
  • trunk/libtransmission/transmission.h

    r12213 r12281  
    17841784        Range is [0..1]
    17851785        @see tr_stat.activity */
    1786     double recheckProgress;
     1786    float recheckProgress;
    17871787
    17881788    /** How much has been downloaded of the entire torrent.
    17891789        Range is [0..1] */
    1790     double percentComplete;
     1790    float percentComplete;
    17911791
    17921792    /** How much of the metadata the torrent has.
     
    17941794        For magnet links, this number will from from 0 to 1 as the metadata is downloaded.
    17951795        Range is [0..1] */
    1796     double metadataPercentComplete;
     1796    float metadataPercentComplete;
    17971797
    17981798    /** How much has been downloaded of the files the user wants. This differs
     
    18001800        Range is [0..1]
    18011801        @see tr_stat.leftUntilDone */
    1802     double percentDone;
     1802    float percentDone;
    18031803
    18041804    /** How much has been uploaded to satisfy the seed ratio.
    18051805        This is 1 if the ratio is reached or the torrent is set to seed forever.
    18061806        Range is [0..1] */
    1807     double seedRatioPercentDone;
     1807    float seedRatioPercentDone;
    18081808
    18091809    /** Speed all data being sent for this torrent.
    18101810        This includes piece data, protocol messages, and TCP overhead */
    1811     double rawUploadSpeed_KBps;
     1811    float rawUploadSpeed_KBps;
    18121812
    18131813    /** Speed all data being received for this torrent.
    18141814        This includes piece data, protocol messages, and TCP overhead */
    1815     double rawDownloadSpeed_KBps;
     1815    float rawDownloadSpeed_KBps;
    18161816
    18171817    /** Speed all piece being sent for this torrent.
    18181818        This ONLY counts piece data. */
    1819     double pieceUploadSpeed_KBps;
     1819    float pieceUploadSpeed_KBps;
    18201820
    18211821    /** Speed all piece being received for this torrent.
    18221822        This ONLY counts piece data. */
    1823     double pieceDownloadSpeed_KBps;
     1823    float pieceDownloadSpeed_KBps;
    18241824
    18251825#define TR_ETA_NOT_AVAIL -1
Note: See TracChangeset for help on using the changeset viewer.