From 346eff699c8cb1f975a7eeb9745aab43e24e03fb Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Sun, 15 Jan 2012 07:08:27 +0000 Subject: [PATCH] - VBOX: Add User ID and Host ID to the CERN data format. samples/vboxwrapper vboxwrapper.cpp svn path=/trunk/boinc/; revision=25068 --- checkin_notes | 8 +++++++- samples/vboxwrapper/vboxwrapper.cpp | 9 +++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 441c169567..f36ba9e7e0 100644 --- a/checkin_notes +++ b/checkin_notes @@ -560,4 +560,10 @@ Rom 14 Jan 2012 samples/vboxwrapper vbox.cpp, .h - vboxwrapper.cpp, + vboxwrapper.cpp + +Rom 15 Jan 2012 + - VBOX: Add User ID and Host ID to the CERN data format. + + samples/vboxwrapper + vboxwrapper.cpp diff --git a/samples/vboxwrapper/vboxwrapper.cpp b/samples/vboxwrapper/vboxwrapper.cpp index bfcc45d616..cc4cd1734b 100644 --- a/samples/vboxwrapper/vboxwrapper.cpp +++ b/samples/vboxwrapper/vboxwrapper.cpp @@ -197,14 +197,19 @@ void set_floppy_image(APP_INIT_DATA& aid, VBOX_VM& vm) { // Use %.17g to represent doubles // scratch = "BOINC_USERNAME=" + std::string(aid.user_name) + "\n"; + scratch += "BOINC_AUTHENTICATOR=" + std::string(aid.authenticator) + "\n"; + + sprintf(buf, "%d", aid.userid); + scratch += "BOINC_USERID=" + std::string(buf) + "\n"; + + sprintf(buf, "%d", aid.hostid); + scratch += "BOINC_HOSTID=" + std::string(buf) + "\n"; sprintf(buf, "%.17g", aid.user_total_credit); scratch += "BOINC_USER_TOTAL_CREDIT=" + std::string(buf) + "\n"; sprintf(buf, "%.17g", aid.host_total_credit); scratch += "BOINC_HOST_TOTAL_CREDIT=" + std::string(buf) + "\n"; - - scratch += "BOINC_AUTHENTICATOR=" + std::string(aid.authenticator) + "\n"; } vm.write_floppy(scratch); }