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 262  
263 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 268 $xml_dom = new DomDocument("1.0");
269 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 622 DD_Var[ID]->NewFile = 1;
623 623 DD_Var[ID]->NewFileWasOpen = 1;
624 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 626 return MOREDELAY;
627 627 break;
628 628 case OUTOFTIME:
... ...