[Planner Dev] A patch to correct task costs calculations
- From: Alvaro del Castillo <acs lambdaux com>
- To: Planner Project Manager - Development List <planner-dev lists imendio com>
- Subject: [Planner Dev] A patch to correct task costs calculations
- Date: Tue, 06 Apr 2004 09:49:31 +0000
Hi guys!
Thanks to the report in January from Waldemar Augustyn here you have a
patch that corrects the task cost calculations.
Cheers
-- Alvaro
Index: libplanner/mrp-task.c
===================================================================
RCS file: /cvs/gnome/planner/libplanner/mrp-task.c,v
retrieving revision 1.2
diff -u -b -B -p -r1.2 mrp-task.c
--- libplanner/mrp-task.c 17 Feb 2004 20:00:17 -0000 1.2
+++ libplanner/mrp-task.c 6 Apr 2004 07:38:24 -0000
@@ -1569,7 +1569,7 @@ mrp_task_get_cost (MrpTask *task)
resource = mrp_assignment_get_resource (l->data);
mrp_object_get (resource, "cost", &cost, NULL);
- total += mrp_assignment_get_units (l->data) * priv->work * cost / (3600.0 * 100);
+ total += priv->work * cost / 3600.0;
}
return total;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]