mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 04:00:44 +00:00
statistics: don't display invalid data when first > last.
This commit is contained in:
parent
eb8b3f19ea
commit
6f2100d3cb
@ -1331,6 +1331,9 @@ QString Statistics::GenerateCPAPUsage()
|
|||||||
} else { // STAT_MODE_RANGE
|
} else { // STAT_MODE_RANGE
|
||||||
first = p_profile->general->statReportRangeStart();
|
first = p_profile->general->statReportRangeStart();
|
||||||
last = p_profile->general->statReportRangeEnd();
|
last = p_profile->general->statReportRangeEnd();
|
||||||
|
if (first > last) {
|
||||||
|
first=last;
|
||||||
|
}
|
||||||
periods.push_back(Period(first,last,first.toString(MedDateFormat)+" - "+last.toString(MedDateFormat)));
|
periods.push_back(Period(first,last,first.toString(MedDateFormat)+" - "+last.toString(MedDateFormat)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user