FACT++  1.0
int setUpdateRate ( IssueStruct *  issueParam)

Definition at line 2719 of file feeserver.c.

References createLogMessage(), provideUpdateRate(), and sprintf().

Referenced by command_handler().

2719  {
2720  char msg[70];
2721  unsigned short newRate;
2722 
2723  if ((*issueParam).size < sizeof(unsigned short)) {
2724  (*issueParam).size = 0;
2725  createLogMessage(MSG_DEBUG,
2726  "FeeServer command for setting update rate contained invalid parameter.",
2727  0);
2728  return FEE_INVALID_PARAM;
2729  }
2730  memcpy(&newRate, (*issueParam).command, sizeof(unsigned short));
2731  updateRate = newRate;
2732  // inform CE about update rate change
2734 # ifdef __DEBUG
2735  printf("set new update rate to %d\n", updateRate);
2736  fflush(stdout);
2737 # endif
2738  msg[sprintf(msg, "New update rate for monitoring items: %d.", updateRate)] = 0;
2739  createLogMessage(MSG_INFO, msg, 0);
2740 
2741  (*issueParam).size = 0;
2742  return FEE_OK;
2743 }
static unsigned short updateRate
Definition: feeserver.c:196
void createLogMessage(unsigned int type, char *description, char *origin)
Definition: feeserver.c:1530
void provideUpdateRate()
Definition: feeserver.c:2848
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: