diff options
| author | Denys Fedoryshchenko <denys.f@collabora.com> | 2026-10-29 11:30:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-29 11:30:45 +0200 |
| commit | 4d4dfa5364a46b87cce6d164f554c64599bafeab (patch) | |
| tree | e2676627dafcba62c0046c620ba4463f4e1085b1 /accel-cmd/accel_cmd.c | |
| parent | 9a2828397c05bf4514ddd199897788701477d0d0 (diff) | |
| parent | e8945e836dc6739d10e73ea33f32959de3554cdf (diff) | |
| download | accel-ppp-4d4dfa5364a46b87cce6d164f554c64599bafeab.tar.gz accel-ppp-4d4dfa5364a46b87cce6d164f554c64599bafeab.zip | |
Merge pull request #376 from nuclearcat/doc-validation-fixes
Doc validation fixes
Diffstat (limited to 'accel-cmd/accel_cmd.c')
| -rw-r--r-- | accel-cmd/accel_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-cmd/accel_cmd.c b/accel-cmd/accel_cmd.c index 3de8624f..6a6dc678 100644 --- a/accel-cmd/accel_cmd.c +++ b/accel-cmd/accel_cmd.c @@ -536,7 +536,7 @@ static int set_timespec(struct timespec *timeout, const char *str) timeout->tv_nsec = 0; } else if (strcmp(end, "ms") == 0) { timeout->tv_sec = ulong / 1000; - timeout->tv_nsec = (ulong % 1000) * 1000; + timeout->tv_nsec = (ulong % 1000) * 1000000; } else if (strcmp(end, "us") == 0) { timeout->tv_sec = ulong / 1000000; timeout->tv_nsec = (ulong % 1000000) * 1000; |
