Posted 02 November 2013 - 09:04 PM
Alright, what I'm trying to do is have a 4x3 monitor setup that will read:
So far, I have this:
Simple, eh? That's about as far as I can get with it. I can get the numbers or free and total space, but I'm at a loss on how to code for the percentages. I know how to wrap monitors and such, but getting this to read math wise has me stumped…
Free Space:
100%
So far, I have this:
while true do
local.mEController = peripheral.wrap("right")
local intInfo = mEController.getFreeBytes()
print(intInfo)
local intInfo = mEController.getTotalBytes()
print(intInfo)
sleep(30)
end
Simple, eh? That's about as far as I can get with it. I can get the numbers or free and total space, but I'm at a loss on how to code for the percentages. I know how to wrap monitors and such, but getting this to read math wise has me stumped…