util

package
v0.0.0-...-9dc6399 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnitsRate = []string{"B/s", "kB/s", "MB/s", "GB/s", "TB/s", "PB/s"}
	UnitsSize = []string{"B", "kB", "MB", "GB", "TB", "PB"}
)

Functions

func FormatUnit

func FormatUnit(num float64, units []string) string

func Percentile

func Percentile(slice []float64, percentile float64) (float64, error)

func ToFloat

func ToFloat(slice []time.Duration) []float64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL