mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4062
This commit is contained in:
parent
229c791dd4
commit
b01f28a8d5
|
@ -16371,10 +16371,18 @@ Noaa 13 Aug 2004
|
|||
Graphics.Readme
|
||||
|
||||
Rom 13 Aug 2004
|
||||
- Needed to backout the newer style of determining disk free space on the clients
|
||||
since all the clients currently reporting to us are 3.x clients and still using
|
||||
the original scheme.
|
||||
- Needed to backout the newer style of determining disk free space
|
||||
on the clients since all the clients currently reporting to us
|
||||
are 3.x clients and still using the original scheme.
|
||||
|
||||
sched/
|
||||
sched_send.C
|
||||
server_types.C, .h
|
||||
|
||||
David 13 Aug 2004
|
||||
- bad IP address display on GUI RPC reject
|
||||
|
||||
client/
|
||||
gui_rpc_server.C
|
||||
sched/
|
||||
request_file_list.C
|
||||
|
|
|
@ -477,7 +477,7 @@ bool GUI_RPC_CONN_SET::poll() {
|
|||
msg_printf(
|
||||
NULL, MSG_ERROR,
|
||||
"GUI RPC request from non-allowed address %s\n",
|
||||
inet_ntoa(ia)
|
||||
inet_ntoa(htonl(ia))
|
||||
);
|
||||
#ifdef _WIN32
|
||||
closesocket(sock);
|
||||
|
|
|
@ -10,8 +10,8 @@ This data can be imported and used to produce
|
|||
web sites that show statistics and leaderboards
|
||||
for one or more BOINC projects.
|
||||
Examples of such sites are listed at
|
||||
<a href=http://setiboinc.ssl.berkeley.edu/ap/stats.php>
|
||||
http://setiboinc.ssl.berkeley.edu/ap/stats.php</a>.
|
||||
<a href=http://setiweb.ssl.berkeley.edu/ap/stats.php>
|
||||
http://setiweb.ssl.berkeley.edu/ap/stats.php</a>.
|
||||
|
||||
<p>
|
||||
Statistics data is exported in XML-format files.
|
||||
|
|
|
@ -26,11 +26,10 @@
|
|||
// Create a msg_to_host_that requests the list of permanant files
|
||||
// associated with the project
|
||||
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
||||
#include "boinc_db.h"
|
||||
#include "sched_config.h"
|
||||
|
@ -71,10 +70,9 @@ int main(int argc, char** argv) {
|
|||
|
||||
check_stop_daemons();
|
||||
|
||||
// get arguments
|
||||
for(i=1; i<argc; i++) {
|
||||
if (!strcmp(argv[i], "-host_id")) {
|
||||
if(!strcmp(argv[++i], "all")) {
|
||||
if (!strcmp(argv[++i], "all")) {
|
||||
host_id = 0;
|
||||
} else {
|
||||
host_id = atoi(argv[i]);
|
||||
|
@ -87,34 +85,29 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
|
||||
// if no arguments are given, error and exit
|
||||
if (host_id == 0) {
|
||||
fprintf(stderr, "request_file_list: bad command line, requires a valid host_id\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// parse the configuration file to get database information
|
||||
retval = config.parse_file("..");
|
||||
if (retval) {
|
||||
fprintf(stderr, "Can't parse config file: %d\n", retval);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// open the database
|
||||
retval = boinc_db.open(config.db_name, config.db_host, config.db_user, config.db_passwd);
|
||||
if (retval) {
|
||||
fprintf(stderr, "boinc_db.open failed: %d\n", retval);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// run the get file routine
|
||||
if(host_id == 0) {
|
||||
if (host_id == 0) {
|
||||
retval = request_files_from_all();
|
||||
} else {
|
||||
retval = request_file_list(host_id);
|
||||
}
|
||||
// close the database
|
||||
|
||||
boinc_db.close();
|
||||
// return with error code if any
|
||||
return retval;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue