- fixed graph respacing error (in wiew threads)

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1110 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
paolo 2006-09-12 13:36:27 +00:00
parent 4b9a03359d
commit fe024ef461
1 changed files with 2 additions and 3 deletions

View File

@ -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<Request*>& 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;