فهرست منبع

Use MB on the CLI

Zachary Kotlarek 12 سال پیش
والد
کامیت
8e7c7cd8fc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      backup/upload.php

+ 1 - 1
backup/upload.php

@@ -15,7 +15,7 @@ global $argc;
 global $argv;
 $BYTES = 1 * 1024 * 1024 * 1024;
 if (($argc > 1) && (strlen($argv[1]) > 0)) {
-	$BYTES = intval($argv[1]);
+	$BYTES = intval($argv[1]) * 1024 * 1024;
 }
 
 # Open the DB connection