metric

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const DefaultDecimalPlacesCount = 4

DefaultDecimalPlacesCount is the default number of decimal places

Variables

This section is empty.

Functions

func Round

func Round(val float64) float64

Round rounds the given float64 value to 4 digit precision.

func RoundWithPrecision

func RoundWithPrecision(val float64, precision int64) (newVal float64)

RoundWithPrecision rounds the given float64 value and ensures that it has a maximum of "precision" decimal places.

Types

This section is empty.

Directories

Path Synopsis
system
cgroup
Package cgroup reads metrics and other tunable parameters associated with control groups, a Linux kernel feature for grouping tasks to track and limit resource usage.
Package cgroup reads metrics and other tunable parameters associated with control groups, a Linux kernel feature for grouping tasks to track and limit resource usage.
cpu

Jump to

Keyboard shortcuts

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