repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove client-side isLoggedIn value
[ProtonMail-WebClient.git]
/
packages
/
docs-core
/
lib
/
Util
/
bucketNumberForUpdateCount.ts
blob
2425d3f142bf0f66ea8632a10797d3fa4f41f16c
1
export function metricsBucketNumberForUpdateCount(count: number): '10s' | '100s' | '1000s' {
2
if (count < 100) {
3
return '10s'
4
}
5
6
if (count < 1000) {
7
return '100s'
8
}
9
10
return '1000s'
11
}