Skip to content

Commit

Permalink
Merge pull request #5397 from bema-aei/increase_p_features_size_upstream
Browse files Browse the repository at this point in the history
complete #5123: client and server: increase p_features size from 1024 to 8192
  • Loading branch information
AenBleidd authored Oct 16, 2023
2 parents 74d2d45 + 7d23fa6 commit fc6d871
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/boinc_db_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ struct HOST {
// but not stored in the DB
// TODO: move this stuff to a derived class HOST_SCHED
//
char p_features[1024];
char p_features[P_FEATURES_SIZE];
char virtualbox_version[256];
bool p_vm_extensions_disabled;
int num_opencl_cpu_platforms;
Expand Down
3 changes: 2 additions & 1 deletion sched/plan_class_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include "util.h"
#include "coproc.h"
#include "hostinfo.h"

#include "sched_config.h"
#include "sched_customize.h"
Expand Down Expand Up @@ -269,7 +270,7 @@ bool PLAN_CLASS_SPEC::check(
// so we can look for them with strstr()
//
if (!cpu_features.empty()) {
char buf[8192], buf2[512];
char buf[P_FEATURES_SIZE], buf2[512];
sprintf(buf, " %s ", sreq.host.p_features);
char* p = strrchr(sreq.host.p_model, '[');
if (p) {
Expand Down

0 comments on commit fc6d871

Please sign in to comment.