mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 09:56:17 -05:00
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:
parent
6a22090e54
commit
c815aa68c6
10 changed files with 46 additions and 59 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue