mirror of https://github.com/BOINC/boinc.git
VBOX: Base the VM name on the MD5 hash of the result name instead of the slot id.
This commit is contained in:
parent
4820cb5436
commit
37db65907c
|
@ -64,6 +64,7 @@
|
||||||
#include "boinc_api.h"
|
#include "boinc_api.h"
|
||||||
#include "diagnostics.h"
|
#include "diagnostics.h"
|
||||||
#include "filesys.h"
|
#include "filesys.h"
|
||||||
|
#include "md5_file.h"
|
||||||
#include "parse.h"
|
#include "parse.h"
|
||||||
#include "str_util.h"
|
#include "str_util.h"
|
||||||
#include "str_replace.h"
|
#include "str_replace.h"
|
||||||
|
@ -585,8 +586,7 @@ int main(int argc, char** argv) {
|
||||||
vm.floppy_image_filename = buf;
|
vm.floppy_image_filename = buf;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sprintf(buf, "_slot_%d", aid.slot);
|
vm.vm_master_name += md5_string(std::string(aid.result_name)).substr(0, 16);
|
||||||
vm.vm_master_name += buf;
|
|
||||||
vm.vm_master_description = aid.result_name;
|
vm.vm_master_description = aid.result_name;
|
||||||
if (vm.enable_floppyio) {
|
if (vm.enable_floppyio) {
|
||||||
sprintf(buf, "%s_%d.%s", FLOPPY_IMAGE_FILENAME, aid.slot, FLOPPY_IMAGE_FILENAME_EXTENSION);
|
sprintf(buf, "%s_%d.%s", FLOPPY_IMAGE_FILENAME, aid.slot, FLOPPY_IMAGE_FILENAME_EXTENSION);
|
||||||
|
|
Loading…
Reference in New Issue