Changeset 22475


Ignore:
Timestamp:
07/22/13 12:38:40 (11 years ago)
Author:
nit
Message:

[titan] change filelist date sort to create date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/filelist.h

    r22474 r22475  
    109109        //tmpstr = createpath(status.tmp, (char*) (*(const struct dirent64**)v1)->d_name);
    110110        rpath = realpath(tmpstr, NULL);
    111         t1 = getfiletime(rpath, 0);
     111        t1 = getfiletime(rpath, 2);
    112112        free(tmpstr); tmpstr = NULL;
    113113        free(rpath); rpath = NULL;
     
    116116        //tmpstr = createpath(status.tmp, (char*) (*(const struct dirent64**)v2)->d_name);
    117117        rpath = realpath(tmpstr, NULL);
    118         t2 = getfiletime(rpath, 0);
     118        t2 = getfiletime(rpath, 2);
    119119        free(tmpstr); tmpstr = NULL;
    120120        free(rpath); rpath = NULL;
     
    134134        //tmpstr = createpath(status.tmp, (char*) (*(const struct dirent64**)v1)->d_name);
    135135        rpath = realpath(tmpstr, NULL);
    136         t1 = getfiletime(rpath, 0);
     136        t1 = getfiletime(rpath, 2);
    137137        free(tmpstr); tmpstr = NULL;
    138138        free(rpath); rpath = NULL;
     
    141141        //tmpstr = createpath(status.tmp, (char*) (*(const struct dirent64**)v2)->d_name);
    142142        rpath = realpath(tmpstr, NULL);
    143         t2 = getfiletime(rpath, 0);
     143        t2 = getfiletime(rpath, 2);
    144144        free(tmpstr); tmpstr = NULL;
    145145        free(rpath); rpath = NULL;
     
    436436                                        rpath = realpath(tmpstr, NULL);
    437437                                        if(view == 4) child->filelist->size = getfilesize(rpath);
    438                                         else if(view == 5) child->filelist->date = getfiletime(rpath, 0);
     438                                        else if(view == 5) child->filelist->date = getfiletime(rpath, 2);
    439439                                        free(tmpstr); tmpstr = NULL;
    440440                                        free(rpath); rpath = NULL;
     
    674674                                                rpath = realpath(tmpstr, NULL);
    675675                                                if(view == 4) child->filelist->size = getfilesize(rpath);
    676                                                 else if(view == 5) child->filelist->date = getfiletime(rpath, 0);
     676                                                else if(view == 5) child->filelist->date = getfiletime(rpath, 2);
    677677                                                free(rpath); rpath = NULL;
    678678                                                free(tmpstr); tmpstr = NULL;
Note: See TracChangeset for help on using the changeset viewer.