~ubuntu-branches/ubuntu/intrepid/htop/intrepid

« back to all changes in this revision

Viewing changes to TasksMeter.c

  • Committer: Bazaar Package Importer
  • Author(s): Bartosz Fenski
  • Date: 2005-12-29 13:22:07 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20051229132207-31czyf1phrsio9k3
Tags: 0.6-1
* New upstream version.
  - doesn't show pipe when some value is equal to zero. (Closes: #325058)
  - allows renicing group of processes. (Closes: #317391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
TasksMeter* TasksMeter_new(ProcessList* pl) {
29
29
   TasksMeter* this = malloc(sizeof(TasksMeter));
30
30
   Meter_init((Meter*)this, String_copy("Tasks"), String_copy("Tasks: "), 1);
31
 
   ((Meter*)this)->attributes[0] = &(CRT_colors[TASKS_RUNNING]);
 
31
   ((Meter*)this)->attributes[0] = TASKS_RUNNING;
32
32
   ((Object*)this)->display = TasksMeter_display;
33
33
   ((Meter*)this)->setValues = TasksMeter_setValues;
34
34
   this->pl = pl;