mirror of https://github.com/BOINC/boinc.git
VBOX: Convert create_vm()
This commit is contained in:
parent
bb0e905bd7
commit
2f51aec2e2
|
@ -77,7 +77,6 @@ VBOX_BASE::VBOX_BASE() {
|
|||
vm_disk_controller_type.clear();
|
||||
vm_disk_controller_model.clear();
|
||||
os_name.clear();
|
||||
vm_memory_size_mb.clear();
|
||||
memory_size_mb = 0.0;
|
||||
image_filename.clear();
|
||||
iso_image_filename.clear();
|
||||
|
|
|
@ -107,8 +107,6 @@ public:
|
|||
// unique name for the VM or UUID of a stale VM if deregistering it
|
||||
std::string vm_cpu_count;
|
||||
// required CPU core count
|
||||
std::string vm_memory_size_mb;
|
||||
// required size of the memory allocation for the VM, in megabytes
|
||||
std::string image_filename;
|
||||
// name of the virtual machine disk image file
|
||||
std::string iso_image_filename;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -330,10 +330,10 @@ void read_completion_file_info(unsigned long& exit_code, bool& is_notice, string
|
|||
FILE* f = fopen(path, "r");
|
||||
if (f) {
|
||||
if (fgets(buf, 1024, f) != NULL) {
|
||||
exit_code = atoi(buf);
|
||||
exit_code = atoi(buf) != 0;
|
||||
}
|
||||
if (fgets(buf, 1024, f) != NULL) {
|
||||
is_notice = atoi(buf);
|
||||
is_notice = atoi(buf) != 0;
|
||||
}
|
||||
while (fgets(buf, 1024, f) != NULL) {
|
||||
message += buf;
|
||||
|
@ -356,7 +356,7 @@ void read_temporary_exit_file_info(int& temp_delay, bool& is_notice, string& mes
|
|||
temp_delay = atoi(buf);
|
||||
}
|
||||
if (fgets(buf, 1024, f) != NULL) {
|
||||
is_notice = atoi(buf);
|
||||
is_notice = atoi(buf) != 0;
|
||||
}
|
||||
while (fgets(buf, 1024, f) != NULL) {
|
||||
message += buf;
|
||||
|
@ -945,7 +945,6 @@ int main(int argc, char** argv) {
|
|||
} else {
|
||||
sprintf(buf, "%d", (int)ceil(vm.memory_size_mb));
|
||||
}
|
||||
vm.vm_memory_size_mb = buf;
|
||||
}
|
||||
if (aid.vbox_window && !aid.using_sandbox) {
|
||||
vm.headless = false;
|
||||
|
|
Loading…
Reference in New Issue