forked from khailey-zz/fio_scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
fiopg.r
30 lines (27 loc) · 763 Bytes
/
fiopg.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
setwd(dir)
poly=1
hist=1
ppi <- 300
for (i in 1:dim(jobs)[1]) {
testname <- jobs[i,1]
bs <- jobs[i,2]
users <- jobs[i,3]
if(bs != "undefined") {
label <- "bs"
value <- bs
} else if(users > 0) {
label <- "users"
value <- users
}
file <- paste(testtype,testname, label, value, sep="_")
file <- paste(file,".png",sep="")
cat("file=",file,"\n")
png(filename=file, width=6*ppi, height=6*ppi, res=ppi )
if ( label== "bs" && bs == "1024K") {
title=paste(testtype,testname,"bs=1M")
} else {
title=paste(testtype,testname,paste(label, "=",value, sep=""))
}
graphit(m, i_name=testname, i_bs=bs, i_user=users, i_title=title, i_hist=hist, i_poly=poly)
dev.off()
}