I have a problem with a gnuplot script.
my data file, have the following format, (values are as example)
# timestamp |- user1 -| |-user2-| |-user3-|
# ms procs cpu% mem% procs cpu% mem% procs cpu% mem%
1234 10 12 13 20 22 23 30 32 33
1235 19 15 16 29 25 26 39 35 36
my gnuplot code is
reset
USERS="user1 user2 user3"
VAL(g,c)= (3*(g-1)) + c
plot for [i=1:words(USERS)] "__GCRONDIR__/.data/usrstat.log" \
u 1:VAL(i,3) t word(USERS,i)." cpu:".i __STYLE0__, \
"" u 1:VAL(i,4) t word(USERS,i)." mem:".i __STYLE0__
my problem is that the loop, happens only for the last user, so if a have 10 users, lets say, this script, will plot 9 cpu's values, for the first 9 users, and both values for the last one. ... for me make no sense, any one?
here a screen shot ;)

