diff options
| author | Paul Buetow (europa) <paul@buetow.org> | 2015-05-31 01:29:35 +0100 |
|---|---|---|
| committer | Paul Buetow (europa) <paul@buetow.org> | 2015-05-31 01:29:35 +0100 |
| commit | 2592afd1fe7ed3a6074406ec59165c245510cd74 (patch) | |
| tree | 30f4f6c7c44071c0d55039abea205a7dcc11f725 | |
| parent | a221f18c71b941a4a778be0996676e10f2b876e9 (diff) | |
fix
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | gstat/main.go | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -1 +1,3 @@ -# gstat +gstat - An iotop a like program programmed in Go for Linux +========================================================== + diff --git a/gstat/main.go b/gstat/main.go index 0e29e70..f347325 100644 --- a/gstat/main.go +++ b/gstat/main.go @@ -87,7 +87,7 @@ func sortP(lastP *mapP) *list.List { // Rremove obsolete pids from lastP for e := remove.Front(); e != nil; e = e.Next() { - id := e.Value.(twoP).first.Id + id := e.Value.(string) //fmt.Println("Removing stale process: " + id) delete(*lastP, id) } @@ -159,7 +159,6 @@ func receiveP(pRxChan <-chan process.Process) { config.modeName = modeName makeDiff := func(first, second process.Process) twoP { - // TODO: make "rchar,wchar" configurable firstValR, firstValW := first.Count[readKey], first.Count[writeKey] secondValR, secondValW := second.Count[readKey], second.Count[writeKey] diffR, diffW := utils.Abs(firstValR-secondValR), utils.Abs(firstValW-secondValW) |
