@@ -109,11 +109,11 @@ class PerfPatternRecognition
109
109
public function __construct ($ options )
110
110
{
111
111
//get AK short names
112
- $ pdo = DB ::factory ('database ' );
112
+ $ pdo = DB ::factory ('appkernel ' );
113
113
$ ak_shortnames =array ();
114
114
$ ak_fullnames =array ();
115
115
$ sql = "SELECT ak_base_name,name
116
- FROM mod_appkernel. app_kernel_def; " ;
116
+ FROM app_kernel_def; " ;
117
117
$ sqlres_tasdb =$ pdo ->query ($ sql );
118
118
foreach ($ sqlres_tasdb as $ row )
119
119
{
@@ -136,7 +136,7 @@ public function __construct($options)
136
136
$ this ->code_colors_by_error_code [$ errorSubtype .$ errorType ]=$ color ;
137
137
}
138
138
}
139
-
139
+
140
140
//get list of resources with scheduled task
141
141
$ this ->active_resources =array ();
142
142
$ akrr_section = isset ($ config ['config_akrr ' ])
@@ -184,7 +184,7 @@ public function make_report()
184
184
for ($ i =0 ;$ i <count ($ this ->recpatterns ['resource ' ]);$ i ++){
185
185
$ resource =$ this ->recpatterns ['resource ' ][$ i ];
186
186
$ problems =$ this ->recpatterns ['problems ' ][$ i ];
187
-
187
+
188
188
$ message .='<tr> ' ;
189
189
$ message .="<td colspan=4>Resource: <b> $ resource</b></td> " ;
190
190
$ message .='</tr> ' ;
@@ -241,10 +241,10 @@ private function recognize_patterns()
241
241
'problems ' =>array ());
242
242
243
243
foreach ($ this ->runStatsResource as $ resource =>$ runStatsResource ) {
244
-
244
+
245
245
if (!in_array ($ resource , $ this ->active_resources ))continue ;
246
-
247
-
246
+
247
+
248
248
$ problems [$ resource ]=array ();
249
249
250
250
//detect appkernel level problems
0 commit comments