forked from MTSR/mapserver
revert d5c7803841
This commit is contained in:
parent
5f01b8fc9c
commit
9daf878049
@ -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() * 1000) - result.LastMtime
|
millisDiff := time.Now().Unix() - result.LastMtime
|
||||||
|
|
||||||
fields := logrus.Fields{
|
fields := logrus.Fields{
|
||||||
"mapblocks": len(result.List),
|
"mapblocks": len(result.List),
|
||||||
|
@ -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()*1000)
|
ctx.Settings.SetInt64(settings.SETTING_LAST_MTIME, time.Now().Unix())
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.Config.EnableInitialRendering {
|
if ctx.Config.EnableInitialRendering {
|
||||||
|
Loading…
Reference in New Issue
Block a user