Browse Source

비행 시간 통계 stepSize 수정

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

4
src/containers/statistics/FlightContainer.js

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

Loading…
Cancel
Save