aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/stat/set.go
Commit message (Collapse)AuthorAgeFilesLines
* all: use min/max functionsDmitry Vyukov2025-01-171-6/+2
| | | | They are shorter, more readable, and don't require temp vars.
* pkg/stat: don't depend on pkg/html/pagesDmitry Vyukov2024-07-241-70/+22
| | | | | | It's useful to collect stats in low-level packages like prog, but pkg/html/pages recursively depend on prog, so currently it's impossible. Make pkg/stat not dependent on pkg/html/pages.
* pkg/stat: preserve vertical scroll position on page reloadsDmitry Vyukov2024-07-241-5/+11
| | | | | | The stats page is frequently reloaded to observe live data. Currently vertical scroll jumps to random positions after reload, it's super inconvinient. Preserve the position.
* pkg/stat: sort graph linesDmitry Vyukov2024-07-241-8/+22
| | | | | | | Currently lines in graphs are reordered on each page reload since use map iteration which is randomized. This is very inconvinient. Sort lines based on creation order. This provides stable order and gives a user some control over order.
* pkg/stat: rename package name to singular formDmitry Vyukov2024-07-241-0/+488
Go package names should generally be singular form: https://go.dev/blog/package-names https://rakyll.org/style-packages https://groups.google.com/g/golang-nuts/c/buBwLar1gNw