Advertisement
KidBrine

yeh2

Aug 21st, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.44 KB | None | 0 0
  1. _G.ae = testae(ae)
  2. Tnum = Tnum+1
  3.  
  4. theme.primary:apply()
  5.  
  6. m.setCursorPos(1,3)
  7. writeIndent(formatEnergy(round(ae.getNetworkEnergyUsage()*2,2), notation).."/t")
  8. writeIndent(formatEnergy(round(ae.getNetworkEnergyStored()*2,2), notation))
  9. m.setCursorPos(1,6)
  10.  
  11. if lastIOTime +1 <= os.clock() then
  12.     total = totalAEItems()
  13.     writeIndent(total - lastTotal.." Item(s)/s")
  14.     lastTotal = total
  15.     lastIOTime = os.clock()
  16. end
  17.  
  18. _G.Tneb[Tnum] = (ec.getInput()-ec.getOutput())*0.4
  19. _G.Tnet = 0
  20. for i = 1,#Tneb do
  21.     _G.Tnet = Tnet+Tneb[i]
  22. end
  23. _G.Tnet = Tnet/#Tneb
  24. _G.Time = -round((ec.getEnergy()*0.4)/Tnet)
  25.    
  26. m.setCursorPos(1,12)
  27. writeIndent(formatEnergy((ec.getInput()-ec.getOutput())*0.4, notation).."/t", 19)
  28. m.setTextColor(colors.lime)
  29. writeIndent(formatEnergy(ec.getInput()*0.4, notation).."/t", 19)
  30. m.setTextColor(colors.red)
  31. writeIndent(formatEnergy(ec.getOutput()*0.4, notation).."/t", 19)
  32. m.setTextColor(colors.white)
  33. writeIndent(formatEnergy(meter.getCounterValue(), notation))
  34. writeIndent(formatEnergy(ec.getEnergy()*0.4, notation))
  35. writeIndent(formatEnergy(ec.getEnergy()*0.4, notation).."/"..formatEnergy(ec.getMaxEnergy()*0.4, notation).." "..round(ec.getEnergy()/ec.getMaxEnergy()*100,2).."%")
  36. if (ec.getInput()-ec.getOutput())*0.4 < 0 and Time >= 0 and ec.getEnergy() <= 500*1000^3 then
  37.     writeIndent(Time.."("..formatTimer(Time)..")")
  38. else
  39.     writeIndent("An Eternity.")
  40. end
  41. if Tnum == integtick then Tnum = 0 end
  42. sleep()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement