mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-28 01:28:30 +00:00
Use a reduction here.
This commit is contained in:
parent
fde096c435
commit
af55c4afb1
@ -406,7 +406,7 @@ void update_net_stats(void)
|
||||
curtmp2 = 0;
|
||||
// get an average
|
||||
#ifdef HAVE_OPENMP
|
||||
#pragma omp parallel for
|
||||
#pragma omp parallel for reduction(+:curtmp1, curtmp2)
|
||||
#endif /* HAVE_OPENMP */
|
||||
for (i = 0; i < info.net_avg_samples; i++) {
|
||||
curtmp1 = curtmp1 + ns->net_rec[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user