diff options
Diffstat (limited to 'src/utils.clj')
| -rwxr-xr-x | src/utils.clj | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.clj b/src/utils.clj index 5af4edc..9a95430 100755 --- a/src/utils.clj +++ b/src/utils.clj @@ -19,6 +19,10 @@ (defn seconds [t] (* t 1000)) (defn minutes [t] (* t 60 1000)) +(defn kbytes [b] (* b 1024)) + +(defn mbytes [b] (* b 1024 1024)) + ;; JSON responses (def yyyy-mm-dd-formatter (new SimpleDateFormat "yyyy-MM-dd")) |
