From 91c042ed61ce685e11b8ca1c6d472aa49c5baa2e Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 12 Feb 2025 13:36:01 +0100 Subject: [PATCH] client: incorrect partition type conversion to hexadecimal partition code is already in decimal as integer, appending 0x to this decimal results in an incorrect hexadecimal conversion when storing it to the database. The web frontend bogusly displays "Empty" as partition type until a refresh happens. --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index 6afde1e..9b1ec71 100644 --- a/src/client.c +++ b/src/client.c @@ -693,7 +693,7 @@ static bool og_update_client_disk_info(struct og_dbi *dbi, "idordenador, numdisk, numpar, codpar, tamano, uso, " "idsistemafichero, idnombreso, idimagen, " "used_size, free_size)" - " VALUES(%d,%s,%s,0x%d,%s,0,%d,%d,0,%lu,%lu)", + " VALUES(%d,%s,%s,%d,%s,0,%d,%d,0,%lu,%lu)", computer_id, partitions[i].disk, partitions[i].number,