Don't create (summary) session with maskon == maskoff

This commit is contained in:
Phil Olynyk 2019-08-01 12:34:06 -04:00
parent 531edc6ad2
commit 37c9e615e4

View File

@ -1366,7 +1366,7 @@ void ResDayTask::run()
for (int i=0;i<resday->str.maskon.size();++i) {
quint32 maskon = resday->str.maskon[i];
quint32 maskoff = resday->str.maskoff[i];
if ((maskon>0) && (maskoff>0)) {
if (((maskon>0) && (maskoff>0)) && (maskon != maskoff)) {
Session * sess = new Session(mach, maskon);
sess->set_first(quint64(maskon) * 1000L);
sess->set_last(quint64(maskoff) * 1000L);