internal

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenIndexPage

func GenIndexPage(nr *NmonReport, fPath string)

func GetFiles added in v1.8.2

func GetFiles(dirPth string, name string) (fileName string)

获取指定目录下的所有文件,包含子目录下的文件

func GetFloatFromDecimal

func GetFloatFromDecimal(value decimal.Decimal) float64

GetFloatFromDecimal decimal.Decimal转float64

func GetFloatFromString

func GetFloatFromString(value string) float64

GetFloatFromString 字符串转float64

func GetNmonReport

func GetNmonReport(filePath string, name string)

func SumOfEachColumns

func SumOfEachColumns(line string) float64

SumOfEachColumns 返回当前行的列之和(不包含前两列)

func SumOfFloat

func SumOfFloat(value ...float64) float64

SumOfFloat 计算float的和

func SumOfSpecifiedColumns

func SumOfSpecifiedColumns(line string, columns []int) float64

SumOfSpecifiedColumns 返回当前行的指定列之和

func SysInfo

func SysInfo() string

Types

type NmonReport

type NmonReport struct {
	ScriptName string
	XAxisdatas string
	CPUUsers   string
	CPUSyss    string
	CPUWaits   string
	Memfrees   string
	Actives    string
	Memtotals  string
	NetReads   string
	NetWrites  string
	DiskReads  string
	DiskWrites string
}

Jump to

Keyboard shortcuts

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