mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 04:16:24 -05:00
Updating map import time estimate.
This commit is contained in:
parent
3ef6ceb06f
commit
6998cc5c93
2 changed files with 6 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ from wrolpi import dates
|
|||
from wrolpi.common import Base, ModelHelper
|
||||
from wrolpi.media_path import MediaPathType
|
||||
|
||||
RPI4_PBF_BYTES_PER_SECOND = 3963
|
||||
RPI4_PBF_BYTES_PER_SECOND = 7573
|
||||
|
||||
|
||||
def seconds_to_import(path: Path, size: int) -> int:
|
||||
|
|
|
|||
|
|
@ -8,11 +8,11 @@ from modules.map import models
|
|||
@pytest.mark.parametrize('path,size,expected', [
|
||||
('file.osm.pbf', 0, 0),
|
||||
('file.osm.pbf', -1, 0),
|
||||
('file.osm.pbf', 17737381, 4475),
|
||||
('file.osm.pbf', 63434267, 16006),
|
||||
('file.osm.pbf', 87745484, 22141),
|
||||
('file.osm.pbf', 136372996, 34411),
|
||||
('file.osm.pbf', 116318111, 29351),
|
||||
('file.osm.pbf', 17737381, 2342),
|
||||
('file.osm.pbf', 63434267, 8376),
|
||||
('file.osm.pbf', 87745484, 11586),
|
||||
('file.osm.pbf', 136372996, 18007),
|
||||
('file.osm.pbf', 116318111, 15359),
|
||||
])
|
||||
def test_seconds_to_import_rpi4(path, size, expected):
|
||||
assert models.seconds_to_import(Path(path), size) == expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue