From d5c78038411b3a8512840254a834c544e293faa6 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Tue, 2 Apr 2019 14:27:20 +0200 Subject: [PATCH] fix time offset of x1000 --- 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 95a3c75..ddc3e74 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() - result.LastMtime + millisDiff := (time.Now().Unix() * 1000) - result.LastMtime fields := logrus.Fields{ "mapblocks": len(result.List), diff --git a/server/tilerendererjob/job.go b/server/tilerendererjob/job.go index 0532708..5975fa2 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()) + ctx.Settings.SetInt64(settings.SETTING_LAST_MTIME, time.Now().Unix() * 1000) } if ctx.Config.EnableInitialRendering {