Skip to content

Commit

Permalink
Fix units
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Aug 26, 2023
1 parent 14ea801 commit fea0fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/_steps/meta/flag_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func FlagAccess(ctx rcontext.RequestContext, sha256hash string, uploadTime int64) {
if uploadTime > 0 {
metrics.MediaAgeAccessed.Observe(float64(util.NowMillis() - uploadTime))
metrics.MediaAgeAccessed.Observe(float64(util.NowMillis()-uploadTime) / 1000.0)
}
if err := database.GetInstance().LastAccess.Prepare(ctx).Upsert(sha256hash, util.NowMillis()); err != nil {
ctx.Log.Warnf("Non-fatal error while updating last access for '%s': %s", sha256hash, err.Error())
Expand Down

0 comments on commit fea0fc0

Please sign in to comment.