Calculating time-to-import for map pbf files in the backend. These times were created using a test RPi4. Encoding URL of archive files to prevent error which blocked displaying of archives.

This commit is contained in:
Roland 2022-03-12 09:50:16 -07:00
parent 6a22090e54
commit c815aa68c6
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
10 changed files with 46 additions and 59 deletions

View file

@ -70,12 +70,11 @@ class ManageMap extends React.Component {
tableRow = (pbf, disabled) => {
let ref = React.createRef();
const {size, path, imported} = pbf;
const raspberryPi4Estimation = 3000000;
const {size, path, imported, time_to_import} = pbf;
let sizeCells = (<>
<Table.Cell>{humanFileSize(size)}</Table.Cell>
<Table.Cell>{humanFileSize(size * 25)}</Table.Cell>
<Table.Cell>{minutesToTimestamp(size / raspberryPi4Estimation)}</Table.Cell>
<Table.Cell>{time_to_import}</Table.Cell>
</>);
return <Table.Row key={path}>
<Table.Cell collapsing>