Ignore:
Timestamp:
Aug 18, 2009, 2:29:11 PM (11 years ago)
Author:
Bruno Cornec
Message:

r3324@localhost: bruno | 2009-07-31 23:42:57 +0200
percent_media_full_comment now allocates memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-archive.c

    r2303 r2313  
    14071407            if (!get_bit_N_of_array
    14081408                (p_list_of_fileset_flags, storing_set_no)) {
    1409             misc_counter_that_is_not_important =
    1410                 (misc_counter_that_is_not_important + 1) % 5;
    1411             /* BCO the media_usage_comment is not really initialized there !
    1412             if (!misc_counter_that_is_not_important) {
    1413                 update_progress_form(media_usage_comment);
    1414             }
    1415             */
    1416             sleep(1);
     1409                misc_counter_that_is_not_important = (misc_counter_that_is_not_important + 1) % 5;
     1410                sleep(1);
    14171411            } else {
    14181412                // store set N
     
    14341428                    sleep(5);
    14351429                }
    1436                 mr_asprintf(&media_usage_comment, "%s", percent_media_full_comment());
    14371430                /* copy to CD (scratchdir) ... and an actual CD-R if necessary */
    14381431                if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
     
    14741467                retval += res;
    14751468                g_current_progress++;
     1469
     1470                media_usage_comment = percent_media_full_comment();
    14761471                update_progress_form(media_usage_comment);
    14771472                mr_free(media_usage_comment);
     
    22152210        }
    22162211
    2217         mr_asprintf(&media_usage_comment, "%s", percent_media_full_comment());
    2218 
    22192212        /* copy to CD (scratchdir) ... and an actual CD-R if necessary */
    22202213        if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
     
    22582251        retval += res;
    22592252        g_current_progress++;
     2253
     2254        media_usage_comment = percent_media_full_comment();
    22602255        update_progress_form(media_usage_comment);
    22612256        mr_free(media_usage_comment);
     
    30343029        mr_asprintf(&curr_slice_fname_compressed, "%s", slice_fname(biggie_file_number, slice_num, bkpinfo->tmpdir, suffix));
    30353030
    3036         mr_asprintf(&tmp, "%s", percent_media_full_comment());
     3031       
     3032        tmp = percent_media_full_comment();
    30373033        update_progress_form(tmp);
    3038         paranoid_free(tmp);
     3034        mr_free(tmp);
    30393035
    30403036        if (!(fout = fopen(curr_slice_fname_uncompressed, "w"))) {
Note: See TracChangeset for help on using the changeset viewer.