Re: 答复 : [Haskell-cafe] How to do this in FP way?

2008-06-17 Thread David Roundy
On Tue, Jun 17, 2008 at 08:56:31AM -0700, Don Stewart wrote: > dons: > > magicloud.magiclouds: > > > OK. Here it is. > > > I want to make a monitor tool for linux. It runs for a long time, and give > > > out a certain process's io stat per second. The way I get io stat is to > > > read > > > from

Re: 答复 : [Haskell-cafe] How to do this in FP way?

2008-06-17 Thread Don Stewart
dons: > magicloud.magiclouds: > > OK. Here it is. > > I want to make a monitor tool for linux. It runs for a long time, and give > > out a certain process's io stat per second. The way I get io stat is to read > > from /proc/pid/io. But the data in this file is a total, I need to read it > > first,

Re: 答复 : [Haskell-cafe] How to do this in FP way?

2008-06-17 Thread Don Stewart
magicloud.magiclouds: > OK. Here it is. > I want to make a monitor tool for linux. It runs for a long time, and give > out a certain process's io stat per second. The way I get io stat is to read > from /proc/pid/io. But the data in this file is a total, I need to read it > first, then next second,