diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-05-29 13:54:11 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-05-29 13:54:11 +0200 |
commit | 56dd21f443c86c3bf96a884c970ceed11a56409a (patch) | |
tree | 8108b48119e8964cec0904170d9f320832c338ef /src/coordinator.c | |
parent | 135469a03d1a03903a57557decb99996aba835cb (diff) | |
download | biruda-56dd21f443c86c3bf96a884c970ceed11a56409a.tar.gz biruda-56dd21f443c86c3bf96a884c970ceed11a56409a.tar.bz2 |
added more around physical memory (worker/coordingator data and cli data)
Diffstat (limited to 'src/coordinator.c')
-rw-r--r-- | src/coordinator.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/coordinator.c b/src/coordinator.c index b1412e0..356a402 100644 --- a/src/coordinator.c +++ b/src/coordinator.c @@ -121,6 +121,11 @@ static char *create_register_answer( ) json_object *cpus = json_object_new_int( nofCpus ); json_object_object_add( obj, "cpus", cpus ); + /* physically installed memory in kBytes */ + unsigned int nofPhysMem = system_phys_memory( ); + json_object *physMem = json_object_new_int( nofPhysMem ); + json_object_object_add( obj, "physical_memory", physMem ); + /* Operating system running on the coordinator, this is * important so we know what we can run on the system * directly |