summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--gstat/main.go3
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)