From 2592afd1fe7ed3a6074406ec59165c245510cd74 Mon Sep 17 00:00:00 2001 From: "Paul Buetow (europa)" Date: Sun, 31 May 2015 01:29:35 +0100 Subject: fix --- README.md | 4 +++- gstat/main.go | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index addc052..327dfc9 100644 --- a/README.md +++ b/README.md @@ -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) -- cgit v1.2.3