2008-01-10 Sancho Lerena <slerena@gmail.com>

* pandoradbdata_13_to_14.sql: Correct build and version.

        * tactical.php: Fixed problem with networkserver stats.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@701 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2008-01-10 17:59:04 +00:00
parent 38a03d9978
commit 4cade0ab84
3 changed files with 21 additions and 17 deletions

View File

@ -1,5 +1,9 @@
2008-01-10 Sancho Lerena <slerena@gmail.com>
* pandoradbdata_13_to_14.sql: Correct build and version.
* tactical.php: Fixed problem with networkserver stats.
Code merged from 1.3.1 branch:
* functions_db.php: Some changes in future generic SQL interface access.

View File

@ -198,13 +198,13 @@
if (($network_server == 1) OR ($data_server == 1)){
// Progress bar calculations
if ($network_server == 1){
if ($total_modules == 0)
if ($modules_server == 0)
$percentil = 0;
if ($total_modules > 0)
$percentil = $modules_server / ($total_modules / 100);
if ($modules_server > 0)
$percentil = $modules_server / ($total_modules_network / 100);
else
$percentil = 0;
$total_modules_temp = $total_modules;
$total_modules_temp = $total_modules_network;
} else {
if ($total_modules_data == 0)
$percentil = 0;

View File

@ -2,8 +2,8 @@
-- New data
UPDATE tconfig SET value = '1.4dev' WHERE token = 'db_scheme_version';
UPDATE tconfig SET value = '1.4dev' WHERE token = 'db_scheme_build';
UPDATE tconfig SET value = '1.4-dev' WHERE token = 'db_scheme_version';
UPDATE tconfig SET value = 'PD080110' WHERE token = 'db_scheme_build';
INSERT INTO `ttipo_modulo` VALUES (100,'keep_alive',-1,'KeepAlive','mod_keepalive.png'), (19, 'image_jpg',4,'Image JPG data', 'mod_image_jpg.png'), (20, 'image_png',4,'Image PNG data', 'mod_image_png.png'), (21, 'async_proc', 5, 'Asyncronous proc data', 'mod_async_proc.png'), (22, 'async_data', 5, 'Asyncronous numeric data', 'mod_async_data.png'), (23, 'async_string', 5, 'Asyncronous string data', 'mod_async_string.png');