Advertisement
MonzterAssassin

DriveMonitor

Mar 14th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. function name(localf = mec.getFreeBytes())
  2. end
  3. local mec = peripheral.wrap("bottom")
  4. local totalf = mec.getFreeBytes()
  5. local totalb = mec.getTotalBytes()
  6. storagePercent = mec.getFreeBytes()*100/mec.getTotalBytes()
  7.  
  8. function test(num, idp)
  9. local mult = 10^(idp or 0)
  10. end
  11.  
  12. term.setTextColor(colors.purple)
  13. print("Free Space:")
  14. if mec.getFreeBytes() == 0 then
  15. print(totalf,0," bytes (No ME Drive Loaded)")
  16. else
  17. print(totalf,0," bytes")
  18. end
  19. print(" ")
  20. print("Total Space:")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement