Changeset 815 in MondoRescue for trunk/mondo/mondo/mondoarchive/main.c


Ignore:
Timestamp:
Sep 23, 2006, 10:37:43 AM (18 years ago)
Author:
Bruno Cornec
Message:

merge -r807:814 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/mondoarchive/main.c

    r808 r815  
    123123}
    124124
     125/* Return a string containing the date */
     126char *mr_date(void) {
     127   
     128    time_t tcurr;
     129
     130    tcurr = time(NULL);
     131    return(ctime(&tcurr));
     132}
     133
     134/*-----------------------------------------------------------*/
     135
     136
    125137
    126138/**
     
    167179    /* Initialize Configuration Structure */
    168180    mr_archive_init_conf(bkpinfo->mr_conf);
    169     log_msg(0, "Start date : %s", get_time());
     181
     182    /* initialize log file with time stamp */
     183    unlink(MONDO_LOGFILE);
     184    log_msg(0, "Time started: %s", mr_date());
    170185
    171186    /* make sure PATH environmental variable allows access to mkfs, fdisk, etc. */
     
    179194    /* Add MONDO_SHARE environment variable for mindi */
    180195    setenv_mondo_share();
    181 
    182     unlink(MONDO_LOGFILE);
    183196
    184197    /* Configure the bkpinfo structure, global file paths, etc. */
     
    417430
    418431    run_program_and_log_output("date", 1);
    419     log_msg(0, "End date : %s", get_time());
     432
     433    /* finalize log file with time stamp */
     434    log_msg(0, "Time finished: %s", mr_date());
    420435
    421436    if (!g_text_mode) {
Note: See TracChangeset for help on using the changeset viewer.