Changeset 471 for trunk/zoo-project/zoo-services/utils
- Timestamp:
- May 10, 2014, 4:23:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-services/utils/status/service.c
r467 r471 104 104 */ 105 105 char *tmpStr=getStatus(atoi(tmpMap->value)); 106 fprintf(stderr,"DEBUG: %s \n",tmpStr); 106 107 if(tmpStr!=NULL && strncmp(tmpStr,"-1",2)!=0){ 107 108 char *tmpStr1=strdup(tmpStr); … … 121 122 setMapInMaps(outputs,"Result","value",(char*)xmlbuff); 122 123 xmlFree(xmlbuff); 123 free(tmpStr);124 124 free(tmpStr1); 125 125 free(tmpStr0); … … 154 154 int i=0; 155 155 while(i<100){ 156 char tmp[4];157 156 char message[10]; 158 sprintf(tmp,"%i",i);159 map* tmpMap=NULL;160 tmpMap=getMapFromMaps(conf,"lenv","sid");161 if(tmpMap!=NULL)162 fprintf(stderr,"Status %s %s\n",tmpMap->value,tmp);163 157 sprintf(message,"Step %d",i); 164 setMapInMaps(conf,"lenv","status",tmp); 165 setMapInMaps(conf,"lenv","message",message); 166 updateStatus(conf); 158 updateStatus(conf,i,message); 167 159 #ifndef WIN32 168 160 sleep(1); … … 172 164 i+=5; 173 165 } 174 set MapInMaps(outputs,"Result","value","\"Running long process successfully\"");166 setOutputValue(outputs,"Result","\"Long process run successfully\"",-1); 175 167 return SERVICE_SUCCEEDED; 176 168 }
Note: See TracChangeset
for help on using the changeset viewer.