82 #if !defined(COSMOS_WIN_OS) 102 sleept = (int32_t)((nmjd -
currentmjd(0.))*86400000000.);
103 if (sleept < 0) sleept = 0;
104 COSMOS_USLEEP(sleept);
#define MAXBUFFERSIZE
Definition: agent_example.cpp:49
int iretn
Definition: rw_test.cpp:37
char node[50]
Definition: agent_example.cpp:43
char agentname[COSMOS_MAX_NAME+1]
Definition: agent_example.cpp:42
double getVirtualMemoryTotal()
Definition: devicecpu.cpp:168
vector< devicestruc > device
Vector of all general (common) information for devices (components) in node.
Definition: jsondef.h:4238
uint16_t running()
Check if we're supposed to be running.
Definition: agentclass.cpp:391
int32_t add_request(string token, external_request_function function, string synopsis="", string description="")
Add internal request to Agent request list with description and synopsis.
Definition: agentclass.cpp:312
Definition: agentclass.h:139
double getLoad()
Definition: devicecpu.cpp:38
uint16_t cpu_cnt
Definition: jsondef.h:3867
double currentmjd(double offset)
Current UTC in Modified Julian Days.
Definition: timelib.cpp:65
vector< uint16_t > cpu
Definition: jsondef.h:3900
vector< agentstruc > agent
Single entry vector for agent information.
Definition: jsondef.h:4247
DeviceCpu cpu
Definition: agent_example.cpp:58
cosmosstruc * cinfo
Definition: agentclass.h:346
Agent * agent
Definition: agent_example.cpp:47
int32_t request_run_program(string &request, string &response, Agent *)
Definition: agent_example.cpp:110
#define AGENT_ERROR_JSON_CREATE
Definition: cosmos-errno.h:105
devspecstruc devspec
Structure for devices (components) special data in node, by type.
Definition: jsondef.h:4241