Changeset f769034


Ignore:
Timestamp:
11/22/13 08:13:38 (17 months ago)
Author:
yurkis <yurkis@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
4ace0576
Parents:
dc2ff91
Message:

Fix size calculation for package updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-updatecenter/pkgcontroller.cpp

    r0e3e712 rf769034  
    3535}ECheckClState; 
    3636 
    37 static long long sizeToLong(QString size_with_units) 
     37static signed long sizeToLong(QString size_with_units) 
    3838{ 
    3939    size_with_units = size_with_units.trimmed(); 
    4040 
    41     long long space = size_with_units.split(" ")[0].toInt(); 
     41    signed long space = size_with_units.split(" ")[0].toInt(); 
    4242    QString units = size_with_units.split(" ")[1].toLower().trimmed(); 
    4343    if (units == QString("kb")) 
     
    107107        if (line.indexOf(UPDATES_AVAIL_SIZE_FREE_STR) == 0 ) 
    108108        { 
    109             line= line.replace(UPDATES_AVAIL_SIZE_STRING, ""); 
     109            line= line.replace(UPDATES_AVAIL_SIZE_FREE_STR, ""); 
    110110            mUpdData.mDiskSpace= 0 - sizeToLong(line); 
    111111            return; 
Note: See TracChangeset for help on using the changeset viewer.