summaryrefslogtreecommitdiff
path: root/gstat
diff options
context:
space:
mode:
authorPaul Buetow (europa) <paul@buetow.org>2015-05-31 01:29:35 +0100
committerPaul Buetow (europa) <paul@buetow.org>2015-05-31 01:29:35 +0100
commit2592afd1fe7ed3a6074406ec59165c245510cd74 (patch)
tree30f4f6c7c44071c0d55039abea205a7dcc11f725 /gstat
parenta221f18c71b941a4a778be0996676e10f2b876e9 (diff)
fix
Diffstat (limited to 'gstat')
-rw-r--r--gstat/main.go3
1 files changed, 1 insertions, 2 deletions
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)