Skip to content

Commit 7c84fb3

Browse files
committed
Take into account NonstopSession parameter when printing the session schedule
1 parent e612ee6 commit 7c84fb3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

quickfixj-core/src/main/java/quickfix/DefaultSessionSchedule.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,11 @@ public String toString() {
331331

332332
private void formatTimeInterval(StringBuilder buf, TimeInterval timeInterval,
333333
SimpleDateFormat timeFormat, boolean local) {
334-
if (isWeekdaySession) {
334+
if (isNonStopSession) {
335+
buf.append("nonstop (NonstopSession is active)");
336+
return;
337+
}
338+
else if (isWeekdaySession) {
335339
try {
336340
for (int i = 0; i < weekdayOffsets.length; i++) {
337341
buf.append(DayConverter.toString(weekdayOffsets[i]));

0 commit comments

Comments
 (0)