Created
July 8, 2011 01:39
-
-
Save allex/1070928 to your computer and use it in GitHub Desktop.
calc specific disk space as integer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function disk(v) { | |
// var r = ((v - 1) * 1028) + 1024; | |
return Math.ceil(Math.ceil(v * 1024 / 7.84423828125) * 7.84423828125); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment