Commit 767d1560 authored by Claes Sjofors's avatar Claes Sjofors

Sev read of items with option event and small number of points fix

parent 3b16f97a
...@@ -1469,7 +1469,10 @@ int sev_dbms::get_values( pwr_tStatus *sts, pwr_tOid oid, pwr_tMask options, flo ...@@ -1469,7 +1469,10 @@ int sev_dbms::get_values( pwr_tStatus *sts, pwr_tOid oid, pwr_tMask options, flo
*sts = SEV__DBERROR; *sts = SEV__DBERROR;
return 0; return 0;
} }
if ( starttime && endtime) { if ( item.options & pwr_mSevOptionsMask_Event) {
total_rows = atoi(row[4]);
}
else if ( starttime && endtime) {
pwr_tTime update_time; pwr_tTime update_time;
if ( row[12]) if ( row[12])
timestr_to_time( row[12], &update_time); timestr_to_time( row[12], &update_time);
...@@ -3173,7 +3176,10 @@ int sev_dbms::get_objectvalues( pwr_tStatus *sts, sev_item *item, ...@@ -3173,7 +3176,10 @@ int sev_dbms::get_objectvalues( pwr_tStatus *sts, sev_item *item,
*sts = SEV__DBERROR; *sts = SEV__DBERROR;
return 0; return 0;
} }
if ( starttime && endtime) { if ( item->options & pwr_mSevOptionsMask_Event) {
total_rows = atoi(row[4]);
}
else if ( starttime && endtime) {
pwr_tTime update_time; pwr_tTime update_time;
if ( row[12]) if ( row[12])
timestr_to_time( row[12], &update_time); timestr_to_time( row[12], &update_time);
......
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