summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--csol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/csol.c b/csol.c
index 4afa853..3ff6571 100644
--- a/csol.c
+++ b/csol.c
@@ -102,12 +102,13 @@ static const char *GetScore(int game)
if (score[game].played == 0)
{
- strcpy(buff, "0 played, 0.00% won");
+ strcpy(buff, "0 played, 0 won, 0.00%");
}
else
{
- snprintf(buff, sizeof buff, "%lu played, %.2f%% won",
+ snprintf(buff, sizeof buff, "%lu played, %lu won, %.2f%%",
score[game].played,
+ score[game].won,
(double)score[game].won / (double)score[game].played * 100.0);
}