1
0
forked from MTSR/mapserver
This commit is contained in:
NatureFreshMilk 2019-01-24 16:33:54 +01:00
parent 7d52ee6507
commit 6697691a9d
2 changed files with 7 additions and 5 deletions

View File

@ -30,7 +30,7 @@ func incrementalRender(ctx *app.App, jobs chan *coords.TileCoords) {
continue
}
renderMapblocks(ctx, jobs, result.List)
tiles := renderMapblocks(ctx, jobs, result.List)
rstate.LastMtime = result.LastMtime
ctx.Config.Save()
@ -39,8 +39,9 @@ func incrementalRender(ctx *app.App, jobs chan *coords.TileCoords) {
elapsed := t.Sub(start)
fields := logrus.Fields{
"count": len(result.List),
"elapsed": elapsed,
"mapblocks": len(result.List),
"tiles": tiles,
"elapsed": elapsed,
}
logrus.WithFields(fields).Info("incremental rendering")
}

View File

@ -45,7 +45,7 @@ func initialRender(ctx *app.App, jobs chan *coords.TileCoords) {
return
}
renderMapblocks(ctx, jobs, result.List)
tiles := renderMapblocks(ctx, jobs, result.List)
lastcoords = *result.LastPos
rstate.LastMtime = result.LastMtime
@ -63,7 +63,8 @@ func initialRender(ctx *app.App, jobs chan *coords.TileCoords) {
progress := int(float64(rstate.LegacyProcessed) / float64(totalLegacyCount) * 100)
fields := logrus.Fields{
"count": len(result.List),
"mapblocks": len(result.List),
"tiles": tiles,
"processed": rstate.LegacyProcessed,
"progress%": progress,
"X": lastcoords.X,