Commit 1faf036d8a0bb83211549660349e196582212842

Authored by Elena.Budnik
1 parent 775592ff

bug in UpdateRemoteStart

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
src/DATA/MANAGER/DDBaseMgr.php
@@ -262,8 +262,8 @@ class DDBaseMgr @@ -262,8 +262,8 @@ class DDBaseMgr
262 262
263 public function updateRemoteStart() 263 public function updateRemoteStart()
264 { 264 {
265 - $startStamp = shell_exec("GetStartTime ".$this->location.$this->times);  
266 - $startIso = date("Y-m-d\TH:i:s", $startStamp).substr(fmod($startStamp, 1),1,4)."Z"; 265 + $startStamp = shell_exec("GetStartTime ".$this->location.$this->times);
  266 + $startIso = date("Y-m-d\TH:i:s", $startStamp).substr(number_format(fmod($startStamp,1),3, '.', ''),1,4)."Z";
267 267
268 $xml_dom = new DomDocument("1.0"); 268 $xml_dom = new DomDocument("1.0");
269 $xml_dom->load($this->location."/".$this->info_xml); 269 $xml_dom->load($this->location."/".$this->info_xml);
src/SERVER/DD_GetData.c
@@ -622,7 +622,7 @@ int GetAttribute(int ID, char *VarName) @@ -622,7 +622,7 @@ int GetAttribute(int ID, char *VarName)
622 DD_Var[ID]->NewFile = 1; 622 DD_Var[ID]->NewFile = 1;
623 DD_Var[ID]->NewFileWasOpen = 1; 623 DD_Var[ID]->NewFileWasOpen = 1;
624 DD_Var[ID]->LastPacketFlag = MOREDELAY; 624 DD_Var[ID]->LastPacketFlag = MOREDELAY;
625 - if(Verbose) fprintf(stderr,"GetData(%d): We have to waite again: %d\n",ID,status); 625 + if(Verbose) fprintf(stderr,"GetData(%d): We have to wait again: %d\n",ID,status);
626 return MOREDELAY; 626 return MOREDELAY;
627 break; 627 break;
628 case OUTOFTIME: 628 case OUTOFTIME: