Skip to content
Snippets Groups Projects
Commit fea0fc0a authored by Travis Ralston's avatar Travis Ralston
Browse files

Fix units

parent 14ea801b
No related branches found
No related tags found
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment