aboutsummaryrefslogtreecommitdiff
path: root/database.go
diff options
context:
space:
mode:
authorFChannel <>2021-08-01 21:42:19 -0700
committerFChannel <>2021-08-01 21:42:19 -0700
commiteffb65f2d7321d267d444d4231c1aae245e3f619 (patch)
tree500b275ddfee0346bce0a7750395e5eb0ce2e494 /database.go
parent4450e8da252137b68f067dbc9cfaa5745a8804c5 (diff)
changed inactive time limit to 48hrs checks every 24
Diffstat (limited to 'database.go')
-rw-r--r--database.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/database.go b/database.go
index f142ea2..9c68364 100644
--- a/database.go
+++ b/database.go
@@ -1826,7 +1826,7 @@ func DeleteInstanceFromInactiveDB(db *sql.DB, instance string) {
func IsInactiveTimestamp(db *sql.DB, timeStamp string) bool {
stamp, _ := time.Parse(time.RFC3339, timeStamp)
- if time.Now().Sub(stamp).Hours() > 24 {
+ if time.Now().UTC().Sub(stamp).Hours() > 48 {
return true
}