vold2: Fix a mb -> sector conversion refactor bug
Signed-off-by: San Mehat <san@google.com>
diff --git a/CommandListener.cpp b/CommandListener.cpp
index efa696b..0207245 100644
--- a/CommandListener.cpp
+++ b/CommandListener.cpp
@@ -183,7 +183,7 @@
}
unsigned int numSectors = (atoi(argv[2]) * (1024 * 1024)) / 512;
- if (VolumeManager::Instance()->createAsec(argv[1], atoi(argv[2]),
+ if (VolumeManager::Instance()->createAsec(argv[1], numSectors,
argv[3], argv[4],
atoi(argv[5]))) {
cli->sendMsg(ResponseCode::OperationFailed, "Container creation failed", true);