Permalink
Browse files

add cost monitor

  • Loading branch information...
1 parent 1e5464b commit 68de1150904a53a65c3a9d28eb5f7c16b42cc4f4 @ghewgill committed Sep 14, 2008
Showing with 6 additions and 0 deletions.
  1. +6 −0 shaback.py
View
@@ -432,6 +432,8 @@ def usage():
usage()
s3 = s3lib.S3Store(access, secret)
+monitor = s3lib.Monitor()
+s3.addmonitor(monitor)
if command == "backup":
if len(args) == 1:
@@ -455,3 +457,7 @@ def usage():
usage()
else:
usage()
+
+print monitor._request
+print monitor._bytesin
+print s3lib.cost(monitor)

0 comments on commit 68de115

Please sign in to comment.