There was an error while loading. Please reload this page.
1 parent f4f6ec1 commit 9ccc769Copy full SHA for 9ccc769
1 file changed
vmshare/service.py
@@ -91,8 +91,8 @@ def post_file(self, rid, filename, filetype, compress=False):
91
if 'vmprof.com' in self.host:
92
# not sure about nginx, what does MB mean? 1MB == 1000 byte or 1024 byte?
93
# take the lower bound...
94
- megabytes = os.path.getsize(filename) / 1000
95
- if megabytes >= 100:
+ size = os.path.getsize(filename)
+ if size >= 100*1000*1000: # 100 MB
96
warnings.warn("WARNING: vmprof.com limits the "
97
"compressed profile file to 100 MBs. "
98
"The upload might fail!\n")
0 commit comments