fix regarding to quotient by 0.5 in config generation
Browse files- index.html +2 -1
index.html
CHANGED
@@ -158,7 +158,8 @@
|
|
158 |
}
|
159 |
|
160 |
// Check if there are remaining layers
|
161 |
-
|
|
|
162 |
let start = totalLayers - (totalLayers % rangeSize);
|
163 |
let end = totalLayers;
|
164 |
yamlStr += `- sources:\n`;
|
|
|
158 |
}
|
159 |
|
160 |
// Check if there are remaining layers
|
161 |
+
const quotient = totalLayers / rangeSize;
|
162 |
+
if (Number.isInteger(quotient) || (quotient % 0.5 === 0 && !Number.isInteger(quotient))) {
|
163 |
let start = totalLayers - (totalLayers % rangeSize);
|
164 |
let end = totalLayers;
|
165 |
yamlStr += `- sources:\n`;
|