Skip to content

Commit c405dff

Browse files
committed
correzione buffer K
1 parent 975fb65 commit c405dff

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

DatidiTest.xlsx

298 Bytes
Binary file not shown.

buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void buffer::insert(packet* pack){
2525
count++;
2626
}
2727
else { // inserimento in coda
28-
if (count < Kqueue) { //controllo se il buffer non è pieno
28+
if (count <= Kqueue) { //controllo se il buffer non è pieno
2929
last->next = pack;
3030
last = pack;
3131
last->next = head;

queue.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ void queue::results()
140140
fprintf(fpout, "*********************************************\n\n");
141141
fprintf(fpout, "Input parameters:\n");
142142
fprintf(fpout, "Buffer Queue limit: %d\n", buf->Kqueue);
143+
if(batch)
144+
fprintf(fpout, "Mean batch size: %d\n", meanC);
143145
fprintf(fpout, "Transient length (s) %5.3f\n", Trslen);
144146
fprintf(fpout, "Run length (s) %5.3f\n", Runlen);
145147
fprintf(fpout, "Number of runs %5d\n", NRUNmin);

0 commit comments

Comments
 (0)