File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 38
38
#include "error.h"
39
39
#include "timer.h"
40
40
41
+ // CURL Options
42
+ #define CURLOPT_DEFAULT_TIMEOUT_MS 500L
43
+
41
44
// Confuse CFG options
42
45
#define LABEE_HOSTNAME_CFG "hostname"
43
46
#define LABEE_NODELIST_FILENAME_CFG "nodelist_file"
@@ -109,6 +112,7 @@ static enum emlError get_xml(struct xml_content * xc) {
109
112
curl_easy_setopt (curl , CURLOPT_URL , labee_api_url );
110
113
curl_easy_setopt (curl , CURLOPT_USERNAME , api_user );
111
114
curl_easy_setopt (curl , CURLOPT_PASSWORD , api_passwd );
115
+ curl_easy_setopt (curl , CURLOPT_TIMEOUT_MS , CURLOPT_DEFAULT_TIMEOUT_MS );
112
116
113
117
struct curl_slist * list = 0 ;
114
118
list = curl_slist_append (list , "Content-type: application/xml" );
Original file line number Diff line number Diff line change @@ -157,6 +157,15 @@ static int is_cpu_model_supported(int model) {
157
157
CPU_HASWELL_2 = 69 ,
158
158
CPU_HASWELL_3 = 70 ,
159
159
CPU_HASWELL_EP = 63 ,
160
+ CPU_BROADWELL_1 = 61 ,
161
+ CPU_BROADWELL_2 = 71 ,
162
+ CPU_BROADWELL_EP = 79 ,
163
+ CPU_BROADWELL_DE = 86 ,
164
+ CPU_SKYLAKE_1 = 78 ,
165
+ CPU_SKYLAKE_2 = 94 ,
166
+ CPU_SKYLAKE_3 = 85 ,
167
+ CPU_KABYLAKE_1 = 142 ,
168
+ CPU_KABYLAKE_2 = 158 ,
160
169
};
161
170
162
171
switch (model ) {
@@ -168,6 +177,15 @@ static int is_cpu_model_supported(int model) {
168
177
case CPU_HASWELL_2 :
169
178
case CPU_HASWELL_3 :
170
179
case CPU_HASWELL_EP :
180
+ case CPU_BROADWELL_1 :
181
+ case CPU_BROADWELL_2 :
182
+ case CPU_BROADWELL_EP :
183
+ case CPU_BROADWELL_DE :
184
+ case CPU_SKYLAKE_1 :
185
+ case CPU_SKYLAKE_2 :
186
+ case CPU_SKYLAKE_3 :
187
+ case CPU_KABYLAKE_1 :
188
+ case CPU_KABYLAKE_2 :
171
189
return 1 ;
172
190
default :
173
191
return 0 ;
You can’t perform that action at this time.
0 commit comments