Skip to content

Commit

Permalink
Mass-apply clang-format 17.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
clang-format 17.0.6 authored and hartwork committed Dec 20, 2023
1 parent 199d83f commit 588f872
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 140 deletions.
8 changes: 5 additions & 3 deletions stresstest.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ int main(int argc, char *argv[]) {
const useconds_t delay = 1e6 / rate;
srand(seed);

for (unsigned int n=0; ; n+=5) {
buffer_pos += sprintf(buffer + buffer_pos, "%.1f\n", (sin(n*M_PI/180)*5)+5);
for (unsigned int n = 0;; n += 5) {
buffer_pos +=
sprintf(buffer + buffer_pos, "%.1f\n", (sin(n * M_PI / 180) * 5) + 5);
if (add_garbage && rand() <= RAND_MAX / 5)
buffer_pos += sprintf(buffer + buffer_pos, "garbage ");
if (two_waves) {
buffer_pos += sprintf(buffer + buffer_pos, "%.1f\n", (cos(n*M_PI/180)*5)+5);
buffer_pos +=
sprintf(buffer + buffer_pos, "%.1f\n", (cos(n * M_PI / 180) * 5) + 5);
if (add_garbage && rand() <= RAND_MAX / 5)
buffer_pos += sprintf(buffer + buffer_pos, "garbage ");
}
Expand Down
Loading

0 comments on commit 588f872

Please sign in to comment.