Giter VIP home page Giter VIP logo

go-osstat's People

Contributors

astj avatar dependabot-preview[bot] avatar dependabot[bot] avatar heptalium avatar hogewest avatar ikesyo avatar itchyny avatar lufia avatar mechairoi avatar nasa9084 avatar ne-sachirou avatar pyto86pri avatar songmu avatar susisu avatar xuoe avatar yseto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-osstat's Issues

Missing mention of disk stats unit in reference

I don't see anywhere in the reference about measurement unit of ReadsCompleted and WritesCompleted fields of disk stats type. Are they read/write coumy or read/witten bytes? If they counts, is there anyway to get rKB/s and wKB/s displayed by iostat?

can't use the disk pkg - build constraints exclude all Go files in

When I try to build with the disk package I'm getting error:

package command-line-arguments
        imports poc/scripts/qps-scenario/scenario
        imports github.com/mackerelio/go-osstat/disk: build constraints exclude all Go files in /Users/liranb/go/pkg/mod/github.com/mackerelio/[email protected]/disk

the mem/cpu works as expected.

is there a known issue?
I tried to do

go clean -modcache

thanks

Need to fix documentation

Get cpu percentage

        cpu_before, _ := cpu.Get()

	for {

		cpu_current, _ := cpu.Get()
		cpuUsage := (1.0 - float64(cpu_current.Idle-cpu_before.Idle)/float64(cpu_current.Total-cpu_before.Total)) * 100.0

		if cpuUsage != cpuUsage {
			cpuUsage = 0
		}
		
		fmt.Printf("CPU : %6.2f\n", cpuUsage)
		
		cpu_before = cpu_current
		time.Sleep(time.Second * 2)
	}

memory.Cached undefined

./emergency-response.go:45:46: memory.Cached undefined (type *memory.Stats has no field or method Cached)
memory, err := memory.Get()
fmt.Printf("memory cached: %d GB\n", memory.Cached)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.