X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/cfd2aa079770ddb4c93d5995b2cd7b5f25da3681..e903011c4457c24c0095f270ca5e78c40729434f:/ui-commit.c diff --git a/ui-commit.c b/ui-commit.c index b6a106f..8011dfc 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -29,7 +29,6 @@ void print_fileinfo(struct fileinfo *info) { char *query, *query2; char *class; - double width; switch (info->status) { case DIFF_STATUS_ADDED: @@ -96,18 +95,15 @@ void print_fileinfo(struct fileinfo *info) } html("
",
- info->added * width / (info->added + info->removed));
- htmlf("
",
- info->removed * width / (info->added + info->removed));
- html("| ", + info->added * 100.0 / max_changes); + htmlf(" | ", + info->removed * 100.0 / max_changes); + htmlf(" | ", + (max_changes - info->removed - info->added) * 100.0 / max_changes); + html(" |