Commit e2dec223 authored by claes's avatar claes

Subscription size on whole object was not correct

parent 35455628
/*
* Proview $Id: remote_pvd_pwrsrv.c,v 1.2 2007-03-20 12:36:38 claes Exp $
* Proview $Id: remote_pvd_pwrsrv.c,v 1.3 2007-05-24 07:03:22 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -283,6 +283,7 @@ static void pwrsrv_SubAdd( rpvd_sMsgSubAdd *msg)
return;
}
if ( strcmp( msg->Attribute, "") != 0) {
strcat( name, ".");
strcat( name, msg->Attribute);
......@@ -292,6 +293,15 @@ static void pwrsrv_SubAdd( rpvd_sMsgSubAdd *msg)
udp_Send( (char *)&rmsg, sizeof(rmsg));
return;
}
}
else {
sts = gdh_GetObjectSize( msg->Oid, &asize);
if ( EVEN(sts)) {
rmsg.Status = sts;
udp_Send( (char *)&rmsg, sizeof(rmsg));
return;
}
}
/* Direct link to atttribute */
sts = gdh_RefObjectInfo( name, &p, &dlid, asize);
......
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