Bug#1014370: wordwarvi: shows wrong (negative) lines/sec value
Nobuhiro Ban
ban.nobuhiro at gmail.com
Tue Jul 5 03:15:53 BST 2022
Package: wordwarvi
Version: 1.0.4-2
Severity: minor
Tags: patch
Dear Maintainer,
wordwarvi shows some metrics before quitting the game.
But the lines/sec value is negative, clearly wrong.
>ban at blackbox$ wordwarvi
(snip)
>363 frames / 12 seconds, 30.25 frames/sec
>Total lines = 476481, lines/sec = -1656883213.999712
>ban at blackbox$
This patch will fix it:
--- 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
More information about the Pkg-games-devel
mailing list