aboutsummaryrefslogtreecommitdiff
path: root/internal/internal.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-07-31 20:00:28 +0700
committerShulhan <ms@kilabit.info>2025-07-31 20:00:28 +0700
commitbec99d46d65c451f18000a7247d3df06765a3894 (patch)
treead1d073ac7bcc2fc5d76c5c550c672f2a4552302 /internal/internal.go
parent9998582575aa02dbd2206497953f207af1f117d2 (diff)
downloadlilin-bec99d46d65c451f18000a7247d3df06765a3894.tar.xz
all: implement worker start and stop
The start method run all the services scanner in the background and consume the report from it from channel. Each time new report coming it will notify the Server to update the index page body.
Diffstat (limited to 'internal/internal.go')
-rw-r--r--internal/internal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/internal.go b/internal/internal.go
index ce6de02..46b9877 100644
--- a/internal/internal.go
+++ b/internal/internal.go
@@ -7,5 +7,5 @@ import "time"
// Now return the current time.
var Now = func() time.Time {
- return time.Now()
+ return time.Now().UTC().Round(time.Second)
}