Changeset 702 for XIOS/trunk/src/node
- Timestamp:
- 09/22/15 10:09:54 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/file.cpp
r692 r702 220 220 lastSync = currentDate; 221 221 lastSplit = currentDate; 222 if (!split_freq.isEmpty()) 223 { 224 if (context->registryIn->foundKey("splitStart") && context->registryIn->foundKey("splitEnd")) 225 { 226 CDate savedSplitStart(*context->getCalendar()), savedSplitEnd(*context->getCalendar()); 227 context->registryIn->getKey("splitStart", savedSplitStart); 228 context->registryIn->getKey("splitEnd", savedSplitEnd); 229 230 if (savedSplitStart <= lastSplit && lastSplit <= savedSplitEnd) 231 lastSplit = savedSplitStart; 232 } 233 } 222 234 isOpen = false; 223 235 … … 336 348 if (!split_freq.isEmpty()) 337 349 { 350 CDate splitEnd = lastSplit + split_freq - 1 * Second; 351 338 352 string splitFormat; 339 353 if (split_freq_format.isEmpty()) … … 347 361 } 348 362 else splitFormat = split_freq_format; 349 oss << "_" << lastSplit.getStr(splitFormat) 350 << "-" << (lastSplit + split_freq.getValue() - 1 * Second).getStr(splitFormat); 363 364 oss << "_" << lastSplit.getStr(splitFormat) << "-" << splitEnd.getStr(splitFormat); 365 366 context->registryOut->setKey("splitStart", lastSplit); 367 context->registryOut->setKey("splitEnd", splitEnd); 351 368 } 352 369
Note: See TracChangeset
for help on using the changeset viewer.