Ignore:
Timestamp:
Jan 14, 2009, 3:50:19 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Changes the way to compute original_size_of_drive in mondo-prep.c to correspond to the way it's done in libmondo-mountlist.c, and thus avoiding aborting nuje mode for 2 MB (which could come from adjustements in computation)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mondo/src/common/libmondo-mountlist.c

    r2052 r2125  
    151151                res++;
    152152            }
    153             amount_allocated += mountlist->el[pos].size / 1024;
     153            amount_allocated += mountlist->el[pos].size / 1024L;
    154154            prev_sp_no = cur_sp_no;
    155155        }
     
    304304                    res++;
    305305                }
    306                 amount_allocated += mountlist->el[pos].size / 1024;
     306                amount_allocated += mountlist->el[pos].size / 1024L;
    307307                prev_sp_no = cur_sp_no;
    308308            }
     
    310310
    311311        /* OK, continue with main loop */
    312         amount_allocated += mountlist->el[pos].size / 1024;
     312        amount_allocated += mountlist->el[pos].size / 1024L;
    313313        prev_part_no = curr_part_no;
    314314    }
     
    459459        }
    460460        /* OK, continue with main loop */
    461         amount_allocated += mountlist->el[pos].size / 1024;
     461        amount_allocated += mountlist->el[pos].size / 1024L;
    462462        prev_part_no = curr_part_no;
    463463    }
Note: See TracChangeset for help on using the changeset viewer.