Ignore:
Timestamp:
07/07/17 18:17:49 (7 years ago)
Author:
oabramkina
Message:

Two server levels: merging trunk r1200 (except for non-contiguous zoom) into dev. Tested on Curie. Todo: non-contiguous zoom.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/node/file.cpp

    r1158 r1201  
    425425         if (!split_freq.isEmpty()) 
    426426         { 
    427            CDate splitEnd = lastSplit + split_freq - 1 * Second; 
     427           CDate split_start ; 
     428           CDate splitEnd ; 
     429           if (!split_start_offset.isEmpty()) split_start=lastSplit + split_start_offset ; 
     430           else split_start=lastSplit ; 
     431 
     432           splitEnd = lastSplit + split_freq ; 
     433           if (!split_last_date.isEmpty()) 
     434           { 
     435             CDate splitLastDate=CDate::FromString(split_last_date,*CContext::getCurrent()->getCalendar()) ; 
     436             if( splitLastDate < splitEnd)  splitEnd=splitLastDate ; 
     437           } 
     438             
     439           if (!split_end_offset.isEmpty()) splitEnd = splitEnd + split_end_offset; 
     440           else splitEnd = splitEnd - 1 * Second; 
    428441 
    429442           string splitFormat; 
     
    440453 
    441454           oss << firstPart ; 
    442            if (hasStartDate) oss << lastSplit.getStr(splitFormat) ; 
     455           if (hasStartDate) oss << split_start.getStr(splitFormat) ; 
    443456           oss << middlePart ; 
    444457           if (hasEndDate) oss << splitEnd.getStr(splitFormat); 
Note: See TracChangeset for help on using the changeset viewer.