Changeset cf29d0c in git
- Timestamp:
- Mar 8, 2011, 4:04:07 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- ea57e3f6d984b6d884a87f764e8f8077c1704db9
- Parents:
- 7a816862d7cbbe2bd06fca7ffee72d0c594805dc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r7a81686 rcf29d0c 3200 3200 // input: u: a list with links of type 3201 3201 // ssi-fork, ssi-tcp, MPtcp-fork or MPtcp-launch 3202 // v: timeout for select in seconds3202 // v: timeout for select in milliseconds 3203 3203 // or 0 for polling 3204 3204 // returns: ERROR (via Werror): timeout negative … … 3219 3219 // input: u: a list with links of type 3220 3220 // ssi-fork, ssi-tcp, MPtcp-fork or MPtcp-launch 3221 // v: timeout for select in seconds3221 // v: timeout for select in milliseconds 3222 3222 // or 0 for polling 3223 3223 // returns: ERROR (via Werror): timeout negative … … 3230 3230 WerrorS("negative timeout"); return TRUE; 3231 3231 } 3232 int t = getRTimer()/timer_resolution;3232 int t = 1000*getRTimer()/timer_resolution; 3233 3233 int i; 3234 3234 int ret = 1; … … 3241 3241 Lforks->m[i-1].rtyp=DEF_CMD; 3242 3242 Lforks->m[i-1].data=NULL; 3243 timeout = si_max(0,timeout - getRTimer()/timer_resolution + t);3243 timeout = si_max(0,timeout - 1000*getRTimer()/timer_resolution + t); 3244 3244 } 3245 3245 else { ret = 0; break; /* terminate the for loop */ }
Note: See TracChangeset
for help on using the changeset viewer.