summaryrefslogtreecommitdiff
path: root/gstat/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'gstat/main.go')
-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)