- 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:
parent
4b9a03359d
commit
fe024ef461
|
@ -588,13 +588,13 @@ HoltWidget::acquire()
|
||||||
|| proc_state==Schedulable::state_ready
|
|| proc_state==Schedulable::state_ready
|
||||||
|| proc_state==Schedulable::state_blocked )
|
|| proc_state==Schedulable::state_blocked )
|
||||||
{
|
{
|
||||||
_n_proc++;
|
|
||||||
HoltSchedulable *hp;
|
HoltSchedulable *hp;
|
||||||
if(!_show_threads)
|
if(!_show_threads)
|
||||||
{
|
{
|
||||||
hp = new HoltSchedulable(*p, pos);
|
hp = new HoltSchedulable(*p, pos);
|
||||||
_holt_schedulables.push_back(hp);
|
_holt_schedulables.push_back(hp);
|
||||||
pos += Vec2(4*_radius, 0);
|
pos += Vec2(4*_radius, 0);
|
||||||
|
_n_proc++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// iter trough threads, requests, subrequests
|
// iter trough threads, requests, subrequests
|
||||||
|
@ -624,6 +624,7 @@ HoltWidget::acquire()
|
||||||
hp = new HoltSchedulable(*t, pos);
|
hp = new HoltSchedulable(*t, pos);
|
||||||
_holt_schedulables.push_back(hp);
|
_holt_schedulables.push_back(hp);
|
||||||
pos += Vec2(4*_radius, 0);
|
pos += Vec2(4*_radius, 0);
|
||||||
|
_n_proc++;
|
||||||
}
|
}
|
||||||
// iter trough requests
|
// iter trough requests
|
||||||
const std::vector<Request*>& rvect = t->get_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;
|
diam = 4 * _radius / side;
|
||||||
}
|
}
|
||||||
// double circ = 4 * _radius * (_n_proc + _n_res);
|
|
||||||
// double diam = circ / M_PI;
|
|
||||||
if(diam<4 * _radius)
|
if(diam<4 * _radius)
|
||||||
diam = 4 * _radius;
|
diam = 4 * _radius;
|
||||||
width = height = diam + 4 * _radius;
|
width = height = diam + 4 * _radius;
|
||||||
|
|
Loading…
Reference in New Issue