1
0
forked from MTSR/mapserver

fix time offset of x1000

This commit is contained in:
NatureFreshMilk 2019-04-02 14:27:20 +02:00
parent 7299253fa1
commit d5c7803841
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) ctx.WebEventbus.Emit("incremental-render-progress", &ev)
millisDiff := time.Now().Unix() - result.LastMtime millisDiff := (time.Now().Unix() * 1000) - result.LastMtime
fields := logrus.Fields{ fields := logrus.Fields{
"mapblocks": len(result.List), "mapblocks": len(result.List),

View File

@ -10,7 +10,7 @@ func Job(ctx *app.App) {
lastMtime := ctx.Settings.GetInt64(settings.SETTING_LAST_MTIME, 0) lastMtime := ctx.Settings.GetInt64(settings.SETTING_LAST_MTIME, 0)
if lastMtime == 0 { if lastMtime == 0 {
//mark current time as last incremental render point //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 { if ctx.Config.EnableInitialRendering {