Commit ffc43863 authored by Alessio Netti's avatar Alessio Netti

Fixing various warnings

parent 23d04c54
......@@ -29,7 +29,7 @@
void SNMPController::set(const oid *const OID, size_t OIDLen, unsigned char type, const void* const val, size_t valLen) {
struct snmp_pdu *pdu, *response;
struct variable_list *vp, *vpIn;
struct variable_list *vp;
int status;
if (!_snmpSessp) {
......@@ -37,7 +37,7 @@ void SNMPController::set(const oid *const OID, size_t OIDLen, unsigned char type
}
pdu = snmp_pdu_create(SNMP_MSG_SET);
vpIn = snmp_pdu_add_variable(pdu, OID, OIDLen, type, val, valLen);
snmp_pdu_add_variable(pdu, OID, OIDLen, type, val, valLen);
status = snmp_sess_synch_response(_snmpSessp, pdu, &response);
......
......@@ -80,22 +80,18 @@ void nvmlSensorGroup::execOnInit() {
}
bool nvmlSensorGroup::execOnStart() {
cudaError_t cerr;
cerr = cudaProfilerStart();
cudaProfilerStart();
return true;
}
void nvmlSensorGroup::execOnStop() {
cudaError_t cerr;
cerr = cudaProfilerStop();
cudaProfilerStop();
}
void nvmlSensorGroup::read() {
reading_t reading;
reading.timestamp = getTimestamp();
reading.value = 0;
nvmlReturn_t err;
unsigned long long temp;
try {
......@@ -174,7 +170,11 @@ void nvmlSensorGroup::read() {
reading.value = counters.procs_cnt;
break;
}
s->storeReading(reading);
if(err == NVML_SUCCESS) {
s->storeReading(reading);
} else {
LOG(error) << "Sensorgroup" << _groupName << " could not read " << s->getName() << ": NVML error!";
}
#ifdef DEBUG
LOG(debug) << _groupName << "::" << s->getName() << " raw reading: \"" << reading.value << "\"";
#endif
......
......@@ -263,7 +263,6 @@ int main(int argc, char** argv) {
std::string domainId = JOB_DEFAULT_DOMAIN;
std::string substitution="";
int maxJobLength = -1;
int timeout = 10;
uint64_t ts=0;
// Defining options
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment