Seems to be different issue. Could you please run it under gdb and send me stack trace?
Best regards,
Victor
Best regards,
Victor
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: raypetter on April 04, 2014, 09:13:57 PM
Posted this in general, but it might be more suitable in this thread as it did not occur on the previous version of netxms.
idxVoltage = $1->getColumnIndex("VOLTAGE");
idxStatus = $1->getColumnIndex("STATUS");
for(i = 0; i < $1->rowCount; i++)
{
$1->set(i, idxVoltage, $1->get(i, idxVoltage) / 1000);
if ($1->get(i, idxStatus) == 3)
{
$1->set(i, idxStatus, "OK");
}
}