summaryrefslogtreecommitdiff
path: root/src/utils.clj
diff options
context:
space:
mode:
authorScott Ostler <sostler@deathmachine.local>2010-03-11 08:01:05 -0500
committerScott Ostler <sostler@deathmachine.local>2010-03-11 08:01:05 -0500
commit3d83db95469600000f4fbc1337bfc6aac9efd9a4 (patch)
tree05ba06023a71bc27e04cbb05280f4c96b63bef9d /src/utils.clj
parente8142b2742433ea26f6434e5933cddea8b4711c2 (diff)
Added upload limits
Diffstat (limited to 'src/utils.clj')
-rwxr-xr-xsrc/utils.clj7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils.clj b/src/utils.clj
index 3180e89..7abed4f 100755
--- a/src/utils.clj
+++ b/src/utils.clj
@@ -13,6 +13,13 @@
:user "postgres"
:password "root"}))
+
+(defn kbytes [b]
+ (* b 1024))
+
+(defn mbytes [b]
+ (* b 1024 1024))
+
;; JSON responses
(def yyyy-mm-dd-formatter (new SimpleDateFormat "yyyy-MM-dd"))