Skip to content

Commit

Permalink
fixed typos in status messages
Browse files Browse the repository at this point in the history
  • Loading branch information
EdHarry committed Nov 21, 2019
1 parent 3b2a143 commit 399723a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions PretextMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,10 @@ ProcessBodyLine(u08 *line)
if ((nLinesTotal % StatusPrintEvery) == 0)
{
char buff[128];

memset((void *)buff, ' ', 80);
buff[80] = 0;
printf("\r%s", buff);

if (File_Type == sam)
stbsp_snprintf(buff, sizeof(buff), "[PretextMap status] :: %$d read pairs processed, %$d read pairs mapped", nLinesTotal, Total_Good_Reads);
else
Expand Down Expand Up @@ -1687,7 +1690,7 @@ WriteTexturesToFile(texture_buffer *buffer)

fwrite(&buffer->nCommpressedBytes, 1, 4, Output_File);
fwrite(buffer->compressionBuffer, 1, buffer->nCommpressedBytes, Output_File);
printf("\r [PretextMap status] :: %3d/%3d (%1.2f%%) texture blocks written to disk...", Texture_Coordinate_Ptr + 1, Number_of_Texture_Blocks, 100.0 * (f64)((f32)(Texture_Coordinate_Ptr + 1) / (f32)Number_of_Texture_Blocks));
printf("\r[PretextMap status] :: %3d/%3d (%1.2f%%) texture blocks written to disk", Texture_Coordinate_Ptr + 1, Number_of_Texture_Blocks, 100.0 * (f64)((f32)(Texture_Coordinate_Ptr + 1) / (f32)Number_of_Texture_Blocks));
fflush(stdout);

AddTextureBufferToQueue(Texture_Buffer_Queue, buffer);
Expand Down

0 comments on commit 399723a

Please sign in to comment.