From da8d562eba8aaa51a5e5dde342cd1ed259e49524 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Thu, 20 Nov 2025 13:25:09 +0100 Subject: [PATCH] fix hardcoded dev variable --- internal/repository/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/repository/node.go b/internal/repository/node.go index 2f84692..7b187ab 100644 --- a/internal/repository/node.go +++ b/internal/repository/node.go @@ -299,7 +299,7 @@ func (r *NodeRepository) QueryNodes( if f.SchedulerState != nil { query = query.Where("node_state = ?", f.SchedulerState) // Requires Additional time_stamp Filter: Else the last (past!) time_stamp with queried state will be returned - now := 1760097536 // time.Now().Unix() + now := time.Now().Unix() query = query.Where(sq.Gt{"time_stamp": (now - 60)}) } if f.HealthState != nil { @@ -368,7 +368,7 @@ func (r *NodeRepository) CountNodes( if f.SchedulerState != nil { query = query.Where("node_state = ?", f.SchedulerState) // Requires Additional time_stamp Filter: Else the last (past!) time_stamp with queried state will be returned - now := 1760097536 // time.Now().Unix() + now := time.Now().Unix() query = query.Where(sq.Gt{"time_stamp": (now - 60)}) } if f.HealthState != nil {