Commit e55fb6e7 authored by Federico Vaga's avatar Federico Vaga

lib: uniform ps conversion

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 03fb1cce
......@@ -43,7 +43,7 @@ uint64_t fmctdc_ts_ps(struct fmctdc_time *a)
ps += a->seconds * 1000000000000;
ps += a->coarse * 8000;
ps += a->frac * 81.03; /* FIXME check this because in other func is different */
ps += a->frac * 8000ULL / 4096ULL;
return ps;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment