summaryrefslogtreecommitdiff
path: root/src/coordinator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coordinator.c')
-rw-r--r--src/coordinator.c5
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