|
|
@ -140,9 +140,10 @@ int db_usage_map(simdb_t *db, int cols) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
m = map; |
|
|
|
m = map; |
|
|
|
while (records) { |
|
|
|
while (records > 0) { |
|
|
|
rest = (records > cols) ? cols : records; |
|
|
|
rest = (records > cols) ? cols : records; |
|
|
|
memcpy(row, m, rest); |
|
|
|
memcpy(row, m, rest); |
|
|
|
|
|
|
|
row[rest] = '\0'; |
|
|
|
pos = m - map + 1; |
|
|
|
pos = m - map + 1; |
|
|
|
printf("%7d : %s\n", pos, row); |
|
|
|
printf("%7d : %s\n", pos, row); |
|
|
|
m += rest; |
|
|
|
m += rest; |
|
|
|