1
0
forked from MTSR/mapserver
This commit is contained in:
Thomas Rudin 2019-04-02 18:50:16 +02:00
parent 5f01b8fc9c
commit 9daf878049
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ func incrementalRender(ctx *app.App) {
ctx.WebEventbus.Emit("incremental-render-progress", &ev)
millisDiff := (time.Now().Unix() * 1000) - result.LastMtime
millisDiff := time.Now().Unix() - result.LastMtime
fields := logrus.Fields{
"mapblocks": len(result.List),

View File

@ -10,7 +10,7 @@ func Job(ctx *app.App) {
lastMtime := ctx.Settings.GetInt64(settings.SETTING_LAST_MTIME, 0)
if lastMtime == 0 {
//mark current time as last incremental render point
ctx.Settings.SetInt64(settings.SETTING_LAST_MTIME, time.Now().Unix()*1000)
ctx.Settings.SetInt64(settings.SETTING_LAST_MTIME, time.Now().Unix())
}
if ctx.Config.EnableInitialRendering {