Noki Posted April 21, 2014 Share Posted April 21, 2014 Hi. getNetworkStats()["bytesSent"] How can I convert the return of that function into megabytes? Link to comment
Dealman Posted April 21, 2014 Share Posted April 21, 2014 1 megabyte is 1 048 576 bytes. Link to comment
cheez3d Posted April 21, 2014 Share Posted April 21, 2014 local convert = function(bytes) return bytes*(9.53674316*10^-7) end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now