Skip to content

Commit

Permalink
oops. Get 64fd674 to build clean
Browse files Browse the repository at this point in the history
(cherry picked from commit d779aab)
  • Loading branch information
f4alt authored and starseeker committed Mar 30, 2023
1 parent b4a291b commit b343d98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libged/nirt/nirt.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "bu/cmd.h"
#include "bu/file.h"
#include "bu/snooze.h"
#include "bu/time.h"
#include "bu/process.h"
#include "vmath.h"

Expand Down Expand Up @@ -84,6 +85,7 @@ ged_nirt_core(struct ged *gedp, int argc, const char *argv[])
char **gd_rt_cmd = NULL;
int gd_rt_cmd_len = 0;
int skip_drawn = 0;
int64_t start = 0;

const char *nirt = NULL;
char nirtcmd[MAXPATHLEN] = {0};
Expand Down Expand Up @@ -309,7 +311,7 @@ ged_nirt_core(struct ged *gedp, int argc, const char *argv[])

print:
/* ensure nirt has started and has something to read from - with 5 second timeout */
int64_t start = bu_gettime();
start = bu_gettime();
while (!bu_process_pending(fileno(fp_err)) && !bu_process_pending(fileno(fp_out))) {
if ((bu_gettime() - start) > BU_SEC2USEC(5))
break;
Expand Down

0 comments on commit b343d98

Please sign in to comment.