Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matrix-media-repo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
matrix-media-repo
Commits
fea0fc0a
Commit
fea0fc0a
authored
1 year ago
by
Travis Ralston
Browse files
Options
Downloads
Patches
Plain Diff
Fix units
parent
14ea801b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pipelines/_steps/meta/flag_access.go
+1
-1
1 addition, 1 deletion
pipelines/_steps/meta/flag_access.go
with
1 addition
and
1 deletion
pipelines/_steps/meta/flag_access.go
+
1
−
1
View file @
fea0fc0a
...
...
@@ -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
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment