Commit e4555d16 authored by Claes Sjofors's avatar Claes Sjofors

Sev object tree fix

parent 89b4ac94
......@@ -123,7 +123,8 @@ class sev_item {
deadband_active(x.deadband_active), last_id(x.last_id), value_size(x.value_size), old_value(x.old_value),
first_storage(x.first_storage),
attrnum(x.attrnum), attr(x.attr), status(x.status), logged_status(x.logged_status), cache(0),
idx(x.idx), deleted(x.deleted) {
idx(x.idx), deleted(x.deleted), ip(x.ip), mean_value(x.mean_value), mean_acc_time(x.mean_acc_time),
variance_cnt(x.variance_cnt) {
strncpy( tablename, x.tablename, sizeof(tablename));
strncpy( oname, x.oname, sizeof(oname));
strncpy( description, x.description, sizeof(description));
......
......@@ -108,7 +108,7 @@ pwr_tStatus sev_db::tree_update()
sts = gdh_NameToObjid( hname, &oid);
if ( new_item || EVEN(sts)) {
// Create object
sts = gdh_CreateObject( hname, pwr_eClass_PlantHier, 0,
sts = gdh_CreateObject( hname, pwr_eClass_NodeHier, 0,
&oid, pwr_cNObjid, 0, pwr_cNObjid);
if ( EVEN(sts)) return sts;
......
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