Fixed a bug in nonfree vs free calculation.

This commit is contained in:
david 2001-08-07 02:55:11 +00:00
parent 2d08bcd4f2
commit efa23dc90d
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ $sql = "select license, count(*) FROM document where pub_status = 'N' group by l
$result=$conn->exec($sql);
die $conn->errorMessage unless PGRES_TUPLES_OK eq $result->resultStatus;
$total = 0;
$free_count = 0;
$nonfree_count = 0;
$unknown_count = 0;
print "<table>\n";
print "<tr><th>License</th><th>Count</th><th>Percent</th></tr>";
while (@row = $result->fetchrow) {