summaryrefslogtreecommitdiff
path: root/plot/plot.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-06 05:38:49 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-06 05:38:49 +0100
commit9491825ddff7a294d1f49061bae7044e426aeb2e (patch)
tree06e651099f87140ec534ae47fb8ce1ac6ec7976d /plot/plot.c
parentfa756339d4204bff7f2820067f58214d32780d17 (diff)
Imported Upstream version 1.8.3
Diffstat (limited to 'plot/plot.c')
-rwxr-xr-x[-rw-r--r--]plot/plot.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plot/plot.c b/plot/plot.c
index 948cb64..e3cd5bf 100644..100755
--- a/plot/plot.c
+++ b/plot/plot.c
@@ -1529,7 +1529,12 @@ static int do_plot_imp(
nanosleep(&ts, NULL);
}
} else if (dowait < 0) {
- Sleep(-dowait * 1000);
+ struct timespec ts;
+ int msec = -dowait * 1000;
+
+ ts.tv_sec = msec / 1000;
+ ts.tv_nsec = (msec % 1000) * 1000000;
+ nanosleep(&ts, NULL);
}
if (tpool != nil)