History

ivf: fix wrong timestamp values

Sigrid Solveig Haflínudóttir committed 5 years ago

Commit 93f64531 parent 8b47c3a1 file · +2 −2Browse files

Unified · Split

ivf.c+2−2
@@ -42,7 +42,7 @@ Bu64le(Biobuf *b, u64int *o) · 41 unmodified lines
42 int x, i;42 int x, i;
43 43
44 *o = 0;44 *o = 0;
45 for(i = 0; i < 8; *o |= x<<(i*8), i++){45 for(i = 0; i < 8; *o |= (uvlong)x<<(i*8), i++){
46 if((x = Bgetc(b)) < 0){46 if((x = Bgetc(b)) < 0){
47 werrstr("failed to read 8 bytes");47 werrstr("failed to read 8 bytes");
48 return -1;48 return -1;
@@ -89,7 +89,7 @@ err: · 40 unmodified lines
89static u64int89static u64int
90ivfns(IVF *ivf, u64int ts)90ivfns(IVF *ivf, u64int ts)
91{91{
92 return ts * ivf->tbnum * 1000000000ULL / ivf->tbdenum;92 return ts * (ivf->tbnum * 1000000000ULL / ivf->tbdenum);
93}93}
94 94
95int95int

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t