From 9daf8780491090633c510256844521a0577c3818 Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Tue, 2 Apr 2019 18:50:16 +0200 Subject: [PATCH] revert d5c78038411b3a8512840254a834c544e293faa6 --- server/tilerendererjob/incremental.go | 2 +- server/tilerendererjob/job.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tilerendererjob/incremental.go b/server/tilerendererjob/incremental.go index ddc3e74..95a3c75 100644 --- a/server/tilerendererjob/incremental.go +++ b/server/tilerendererjob/incremental.go @@ -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), diff --git a/server/tilerendererjob/job.go b/server/tilerendererjob/job.go index 58b3e37..0532708 100644 --- a/server/tilerendererjob/job.go +++ b/server/tilerendererjob/job.go @@ -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 {