Commit 47cd7d3
committed
Fix number of segments of a large object
The total number of segments was determined with round($streamSize/$segmentSize).
In cases like $streamSize=24 and $segmentSize=10 this resulted in one segment
too few that was uploaded. This has been fixed by simply omitting round().1 parent eec8fb4 commit 47cd7d3
File tree
2 files changed
+4
-2
lines changed- src/ObjectStore/v1/Models
- tests/unit/ObjectStore/v1/Models
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
231 | 232 | | |
232 | | - | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
0 commit comments