Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

OfflineDownload misreports early statuses as being precise #4245

Closed

Description

@jfirebaugh

When the database contains some of the required resources, OfflineDownload will send initial statuses with requiredResourceCountIsPrecise = true when it should be false.

This can be seen in output from the mbgl-offline binary:

1 / 14289 resources; 2868 bytes downloaded (- bytes/sec)
2 / 14290 resources; 111533 bytes downloaded (- bytes/sec)
3 / 14291 resources; 114942 bytes downloaded (- bytes/sec)
4 / 14292 resources; 157345 bytes downloaded (- bytes/sec)
5 / 14293 resources; 215549 bytes downloaded (- bytes/sec)
6 / 14294 resources; 265042 bytes downloaded (- bytes/sec)
7 / 14295 resources; 308500 bytes downloaded (- bytes/sec)
8 / 14296 resources; 379103 bytes downloaded (- bytes/sec)
9 / 14297 resources; 415925 bytes downloaded (- bytes/sec)

The correct number of required resources is 15571, so all of the status messages with a required count less than that should say (indeterminate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions