summaryrefslogtreecommitdiffstats
path: root/sources/ogAdmServer.cpp
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-11-21 17:42:57 +0100
committerRamón M. Gómez <ramongomez@us.es>2019-11-21 17:42:57 +0100
commit696c5bbaf0be85a9e6382e611bf21a906838c71a (patch)
tree0f0711c5f0010ce575e7fb4aca5c4714bd095c13 /sources/ogAdmServer.cpp
parentabd2b913d8b352388eb093f0e03b67138db9c490 (diff)
#839: Always update the partition types when obtaining the computer configuration.
Diffstat (limited to 'sources/ogAdmServer.cpp')
-rw-r--r--sources/ogAdmServer.cpp3
1 files changed, 2 insertions, 1 deletions
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);