#1014370 wordwarvi: shows wrong (negative) lines/sec value

Package:
wordwarvi
Source:
wordwarvi
Description:
retro-styled side-scrolling shoot'em up arcade game
Submitter:
Nobuhiro Ban
Date:
2022-07-05 02:21:04 UTC
Severity:
minor
Tags:
#1014370#5
Date:
2022-07-05 02:15:53 UTC
From:
To:
Dear Maintainer,

wordwarvi shows some metrics before quitting the game.
But the lines/sec value is negative, clearly wrong.
(snip)
--- wordwarvi-1.0.4.orig/wordwarvi.c
+++ wordwarvi-1.0.4/wordwarvi.c
@@ -11340,7 +11340,7 @@ void really_quit()
  (0.0 + nframes) / (0.0 + end_time.tv_sec - start_time.tv_sec));
  printf("Total lines = %lu, lines/sec = %f\n", total_line_count,
  (double) total_line_count /
- (double) end_time.tv_sec - start_time.tv_sec);
+ (double) (end_time.tv_sec - start_time.tv_sec));
  destroy_event();
 }


Regards,
Nobuhiro Ban