Browse Source

비행 시간 통계 stepSize 수정

pull/2/head
hhjk00 10 months ago
parent
commit
eb80917ec3
  1. 14
      src/containers/statistics/FlightContainer.js

14
src/containers/statistics/FlightContainer.js

@ -90,12 +90,16 @@ export default function FlightContainer() {
const base = Math.pow(10, exponent); const base = Math.pow(10, exponent);
let stepSize; let stepSize;
if (max / base > 5) { if (searchType.category === 'TIME') {
stepSize = base; stepSize = 3600;
} else if (max / (base / 2) > 5) {
stepSize = base / 2;
} else { } else {
stepSize = base / 5; if (max / base > 5) {
stepSize = base;
} else if (max / (base / 2) > 5) {
stepSize = base / 2;
} else {
stepSize = base / 5;
}
} }
return stepSize; return stepSize;

Loading…
Cancel
Save