diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2014-12-04 15:08:40 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2014-12-04 15:08:40 +0100 |
commit | 5706fc4a77f6d30d5fefa627914d102a5bab8e0e (patch) | |
tree | 36e578dc7741f5eaa3fa390f85dac10c4a783bb2 /src/biruda.c | |
parent | 7836764be463d8a537e8a2db6003af1356c7ea37 (diff) | |
download | biruda-5706fc4a77f6d30d5fefa627914d102a5bab8e0e.tar.gz biruda-5706fc4a77f6d30d5fefa627914d102a5bab8e0e.tar.bz2 |
implemented system detection on Windows (CPE)
Diffstat (limited to 'src/biruda.c')
-rw-r--r-- | src/biruda.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/biruda.c b/src/biruda.c index f4ff03a..0e0379c 100644 --- a/src/biruda.c +++ b/src/biruda.c @@ -22,6 +22,7 @@ #include "libdaemon/daemon.h" #endif +#include "system.h" #include "master.h" #include "worker.h" #include "coordinator.h" @@ -154,6 +155,17 @@ static int read_config( const char *filename, cfg_t **cfg ) static void print_config( struct gengetopt_args_info *args_info, cfg_t *cfg ) { + unsigned int nofCpus = system_available_cpus( ); + puts( "Environment:" ); + printf( " Number of CPUs: %d\n", nofCpus ); + char machine_arch[100]; + system_arch( machine_arch, sizeof( machine_arch ) ); + printf( " System architecture: %s\n", machine_arch ); + char os_name[100]; + system_os( os_name, sizeof( os_name ) ); + printf( " Operating system: %s\n", os_name ); + puts( "" ); + cfg_t *master_cfg = cfg_getnsec( cfg, "master", 0 ); unsigned int has_master = cfg_size( cfg, "master" ); if( has_master ) { |