mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-12 15:52:53 +02:00
fix metric to use milliseconds (#5632)
This was supposed to be in milliseconds not microseconds.
This commit is contained in:
parent
6918bf83cb
commit
c0a8b79ef1
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ func (e *Evaluator) Evaluate(ctx context.Context, req *Request) (*Result, error)
|
|||
} else if policyOutput.Allow.Value {
|
||||
e.allowCount.Add(ctx, 1)
|
||||
}
|
||||
e.evaluationDuration.Record(ctx, time.Since(start).Microseconds())
|
||||
e.evaluationDuration.Record(ctx, time.Since(start).Milliseconds())
|
||||
|
||||
res := &Result{
|
||||
Allow: policyOutput.Allow,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue