Commit d4681d34 authored by noirot's avatar noirot
Browse files

Debug purge = instead of ==

parent 3920c265
......@@ -217,7 +217,7 @@ class tx_nG6_db {
if ($res_row['run_id'] != "") {
$by_project[$res_row['project_id']]['state'][$res_row['state']]['nb_run']+=1;
$key = 'storage_size';
if($res_row['state'] = "purged"){
if($res_row['state'] == "purged"){
$key = "purged_size";
}
$by_project[$res_row['project_id']]['state'][$res_row['state']]['size_run']+=$res_row[$key];
......@@ -246,7 +246,7 @@ class tx_nG6_db {
if ($res_row['analyze_id'] != ""){
$by_project[$res_row['project_id']]['state'][$res_row['state']]['nb_analyze'] += 1;
$key = 'storage_size';
if($res_row['state'] = "purged"){
if($res_row['state'] == "purged"){
$key = "purged_size";
}
$by_project[$res_row['project_id']]['state'][$res_row['state']]['size_analyze'] += $res_row[$key];
......@@ -277,7 +277,7 @@ class tx_nG6_db {
if ($res_row['analyze_id'] != ""){
$by_project[$res_row['project_id']]['state'][$res_row['state']]['nb_analyze'] += 1;
$key = 'storage_size';
if($res_row['state'] = "purged"){
if($res_row['state'] == "purged"){
$key = "purged_size";
}
$by_project[$res_row['project_id']]['state'][$res_row['state']]['size_analyze'] += $res_row[$key];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment