From 696c5bbaf0be85a9e6382e611bf21a906838c71a Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Thu, 21 Nov 2019 17:42:57 +0100 Subject: #839: Always update the partition types when obtaining the computer configuration. --- sources/ogAdmServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index 683aab6..5bf2779 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -663,9 +663,10 @@ bool actualizaConfiguracion(Database db, Table tbl, char *cfg, int ido) cpt, tam, uso, idsfi, idsoi, ido, disk, par); } else { // Actualizar porcentaje de uso. sprintf(sqlstr, "UPDATE ordenadores_particiones SET " + " codpar=0x%s," " uso=%s" " WHERE idordenador=%d AND numdisk=%s AND numpar=%s", - uso, ido, disk, par); + cpt, uso, ido, disk, par); } if (!db.Execute(sqlstr, tbl)) { db.GetErrorErrStr(msglog); -- cgit v1.2.3-18-g5258