1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-30 05:59:07 +00:00

Use a reduction here.

This commit is contained in:
Brenden Matthews 2009-05-05 17:43:45 -06:00
parent fde096c435
commit af55c4afb1

View File

@ -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];