From fe024ef4618edb9894edc0991a9b1358448f252a Mon Sep 17 00:00:00 2001 From: paolo Date: Tue, 12 Sep 2006 13:36:27 +0000 Subject: [PATCH] - fixed graph respacing error (in wiew threads) git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1110 3ecf2c5c-341e-0410-92b4-d18e462d057c --- src/holt_widget.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/holt_widget.cc b/src/holt_widget.cc index 89ef5de..99102bf 100644 --- a/src/holt_widget.cc +++ b/src/holt_widget.cc @@ -588,13 +588,13 @@ HoltWidget::acquire() || proc_state==Schedulable::state_ready || proc_state==Schedulable::state_blocked ) { - _n_proc++; HoltSchedulable *hp; if(!_show_threads) { hp = new HoltSchedulable(*p, pos); _holt_schedulables.push_back(hp); pos += Vec2(4*_radius, 0); + _n_proc++; } // iter trough threads, requests, subrequests @@ -624,6 +624,7 @@ HoltWidget::acquire() hp = new HoltSchedulable(*t, pos); _holt_schedulables.push_back(hp); pos += Vec2(4*_radius, 0); + _n_proc++; } // iter trough requests const std::vector& rvect = t->get_requests(); @@ -774,8 +775,6 @@ HoltWidget::calc_drawing_size(cairo_t* ctx, size_t& width, size_t& height) { diam = 4 * _radius / side; } -// double circ = 4 * _radius * (_n_proc + _n_res); -// double diam = circ / M_PI; if(diam<4 * _radius) diam = 4 * _radius; width = height = diam + 4 * _radius;