Browse Source

duration_delta(): missing space in a one liner is too much.

antirez 3 years ago
parent
commit
e921036d38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app.c

+ 1 - 1
app.c

@@ -64,7 +64,7 @@ void render_signal(ProtoViewApp *app, Canvas *const canvas, RawSamplesBuffer *bu
 /* Return the time difference between a and b, always >= 0 since
  * the absolute value is returned. */
 uint32_t duration_delta(uint32_t a, uint32_t b) {
-    return a > b ? a - b : b -a;
+    return a > b ? a - b : b - a;
 }
 
 /* This function starts scanning samples at offset idx looking for the