From 4f5c357dcd1a5531955cf8cd185fc86bbec66168 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 27 Oct 2020 14:03:14 +0100 Subject: #941 Fix get computer center id Creating a software profile failed. ogServer obtained the information of a computer without center id because commit cbd9421 removed it unintentionally, making all computer had center id equal to zero. This commit restores the gathering of computer center id from the database. --- src/dbi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dbi.c') diff --git a/src/dbi.c b/src/dbi.c index 33c4a8e..3f97fee 100644 --- a/src/dbi.c +++ b/src/dbi.c @@ -103,6 +103,7 @@ int og_dbi_get_computer_info(struct og_dbi *dbi, struct og_computer *computer, snprintf(computer->mac, sizeof(computer->mac), "%s", dbi_result_get_string(result, "mac")); computer->room = dbi_result_get_uint(result, "idaula"); + computer->center = dbi_result_get_uint(result, "idcentro"); computer->hardware_id = dbi_result_get_uint(result, "idperfilhard"); computer->repo_id = dbi_result_get_uint(result, "idrepositorio"); snprintf(computer->netmask, sizeof(computer->netmask), "%s", -- cgit v1.2.3-18-g5258