Changeset 4860
- Timestamp:
- May 22, 2017, 2:48:12 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-analytics-server/trunk/fuentes/lliurex-analytics-server/usr/lib/analytics-server/analytics/db.php
r4854 r4860 158 158 $obj=[]; 159 159 //4 Debugging only 160 $dbg_obj=[];160 //$dbg_obj=[]; 161 161 $other_sql=array(); 162 162 foreach ($this->info_distro['distros'] as $distro){ … … 165 165 $obj[$dname]=array(); 166 166 //4 Debugging only 167 $dbg_obj[$dname]=array();167 //$dbg_obj[$dname]=array(); 168 168 foreach ($distro['sabor'] as $sabor){ 169 169 $sname=$sabor['name']; … … 177 177 178 178 //4 Debugging only 179 $dbg_obj[$dname][$sname][]=$this->get_current_chart($dlike,$slike,'yes');180 $dbg_obj[$dname][$sname][]=$this->get_old_chart($dlike,$slike,'yes');181 $dbg_obj[$dname][$sname][]=$this->get_very_old_chart($dlike,$slike,'yes');179 //$dbg_obj[$dname][$sname][]=$this->get_current_chart($dlike,$slike,'yes'); 180 //$dbg_obj[$dname][$sname][]=$this->get_old_chart($dlike,$slike,'yes'); 181 //$dbg_obj[$dname][$sname][]=$this->get_very_old_chart($dlike,$slike,'yes'); 182 182 } 183 183 } 184 184 //4 Debugging only 185 file_put_contents('/tmp/graph_sql',str_replace('\\','',var_export($dbg_obj,true)));186 file_put_contents('/tmp/other_sql',str_replace('\\','',var_export($this->gen_other($other_sql),true)));185 //file_put_contents('/tmp/graph_sql',str_replace('\\','',var_export($dbg_obj,true))); 186 //file_put_contents('/tmp/other_sql',str_replace('\\','',var_export($this->gen_other($other_sql),true))); 187 187 $sql_other_sentences=$this->gen_other($other_sql); 188 188 //4 Debugging only 189 file_put_contents('/tmp/rotate_sql',str_replace('\\','',var_export($this->prepare_rotate_clients(),true)));189 //file_put_contents('/tmp/rotate_sql',str_replace('\\','',var_export($this->prepare_rotate_clients(),true))); 190 190 191 191 $obj['other']['other'][]=array($this->get_result_from_sql($sql_other_sentences['current']),$this->get_clients_from_sql($sql_other_sentences['current_clients']));
Note: See TracChangeset
for help on using the changeset viewer.