in load_tests/logger/stdout_logger/log_generator.c [38:64]
int main() {
int t = atoi(getenv("TIME"));
int iteration = atoi(getenv("ITERATION"))*1000;
int i = 0;
int idCounter = 10000000;
while (i < t) {
int j = 0;
long long startSeconds;
long long endSeconds;
startSeconds = timeInMilliseconds();
while (j < iteration) {
printf("%d_%lld_%s\n", idCounter, startSeconds, ONE_KB_TEXT);
idCounter=idCounter+1;
j=j+1;
}
i = i + 1;
endSeconds = timeInMilliseconds();
msleep(1000+startSeconds-endSeconds);
}
// Uncomment below two lines to Keep the generator running for 1 hour
// fflush(stdout);
// sleep(RUNNING_IN_SECOND);
return 0;
}