vold2: Fix a mb -> sector conversion refactor bug

Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat 2010-01-11 10:03:24 -08:00
parent c66770f4c0
commit dfe79492a4

View file

@ -183,7 +183,7 @@ int CommandListener::CreateAsecCmd::runCommand(SocketClient *cli,
}
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);