Commit f888e25a authored by claes's avatar claes

Attribute in node-object CurVersion changed to CurrentVersion

parent 38dd5b05
...@@ -288,14 +288,14 @@ init_node ( ...@@ -288,14 +288,14 @@ init_node (
int tmo; int tmo;
dt = MAX(1, (int)(o->SubscriptionInterval * 1000)); dt = MAX(1, (int)(o->SubscriptionInterval * 1000));
tmo = MAX(2 * dt, 10000); /* 10 s */ tmo = MAX(2 * dt/100, 100); /* 10 s */
sts = gdh_SetSubscriptionDefaults (dt, tmo); sts = gdh_SetSubscriptionDefaults (dt, tmo);
tid.pwr = pwr_eClass_Node; tid.pwr = pwr_eClass_Node;
tid.c.bix = 1; tid.c.bix = 1;
aref.Objid = o->Node; aref.Objid = o->Node;
sts = gdh_ClassAttrToAttrref(pwr_eClass_Node, ".CurVersion", &aref); sts = gdh_ClassAttrToAttrref(pwr_eClass_Node, ".CurrentVersion", &aref);
sts = gdh_SubRefObjectInfoAttrref(&aref, &o->SubId); sts = gdh_SubRefObjectInfoAttrref(&aref, &o->SubId);
if ( EVEN(sts)) if ( EVEN(sts))
errh_Error("Couldn't get link to Node object, %m", sts); errh_Error("Couldn't get link to Node object, %m", 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