Bug in etop_txt format

Rikard Johansson <>
Tue Dec 13 12:16:16 CET 2005


etop_txt presents the values wrong. The Format and Arguments  in 
io:fwrite(?SYSFORM, [...]) are mismatched.
This bug exists in at least R10B-6.

The following patch corrects the problem.

# diff etop_txt.erl.orig etop_txt.erl
57,59c57,61
<     io:fwrite(Fd,?SYSFORM, [Config#opts.node,Clock,Cpu,Tot,NProcs,Procs,
<                           RQ,Atom,Bin,Code,Ets]),
<     io:nl(Fd),
---
 >     io:fwrite(Fd,?SYSFORM, [Config#opts.node,Clock,
 >                             Cpu,Tot,Bin,
 >                             NProcs,Procs,Code,
 >                             RQ,Atom,Ets]),
 >     io:nl(Fd),

/Rikard



More information about the erlang-patches mailing list