~ubuntu-branches/ubuntu/trusty/gparted/trusty

« back to all changes in this revision

Viewing changes to src/ext4.cc

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2010-06-30 21:37:01 UTC
  • mfrom: (6.3.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100630213701-mb46ic0orpuz7l6m
Tags: 0.6.0-1
* New upstream release 
* Fix out-of-date-standards-version

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
                        S = -1 ;
77
77
 
78
78
                if ( N > -1 && S > -1 )
79
 
                        partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
 
79
                        partition .Set_Unused( Utils::round( N * ( S / double(partition .sector_size) ) ) ) ;
80
80
        }
81
81
        else
82
82
        {
120
120
        
121
121
        if ( ! fill_partition )
122
122
                str_temp += " " + Utils::num_to_str( Utils::round( Utils::sector_to_unit( 
123
 
                                        partition_new .get_length(), GParted::UNIT_KIB ) ) -1 ) + "K" ; 
 
123
                                        partition_new .get_sector_length(), partition_new .sector_size, UNIT_KIB ) ) -1 ) + "K" ; 
124
124
                
125
125
        return ! execute_command( str_temp, operationdetail ) ;
126
126
}