View difference between Paste ID: a5pUsqV9 and Pu37cT9g
SHOW: | | - or go back to the newest paste.
1-
p=peripheral.wrap("right")
1+
p=peripheral.wrap("left")
2
while true do
3
4
time1=os.time()
5
6
a=p.getTankInfo()
7
amount1=a[1].contents.amount
8
9-
sleep(10)
9+
sleep(60)
10
11
a=p.getTankInfo()
12
amount2=a[1].contents.amount
13
14
time2=os.time()-time1
15-
print((amount1-amount2)/(time2*500))
15+
difference=math.abs((amount1-amount2)/(time2*1000))
16
print(difference.." mB/t - "..(difference*20).." mB/s")
17
18
end
19
20
shell.run("lua")