git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90401f7
)
fix cpuTime int owerflow
author
Jan Pospíšil
<honik@ntc.zcu.cz>
Thu, 18 Mar 2010 09:49:43 +0000
(09:49 +0000)
committer
Jan Pospíšil
<honik@ntc.zcu.cz>
Thu, 18 Mar 2010 09:49:43 +0000
(09:49 +0000)
org.glite.lb.server/src/ws_lb4agu.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/ws_lb4agu.c
b/org.glite.lb.server/src/ws_lb4agu.c
index
5d5bc54
..
b492fec
100644
(file)
--- a/
org.glite.lb.server/src/ws_lb4agu.c
+++ b/
org.glite.lb.server/src/ws_lb4agu.c
@@
-275,8
+275,10
@@
static int edg_wll_JobStatusToGlueComputingActivity(
// UsedTotalCPUTime (optional, xsd:unsignedLong) = cpuTime?
// TODO: put resource usage once available
- js->UsedTotalCPUTime = soap_malloc(soap,sizeof *js->UsedTotalCPUTime);
- *js->UsedTotalCPUTime = src->cpuTime;
+ if ((src->cpuTime) && (src->cpuTime != -1)) {
+ js->UsedTotalCPUTime = soap_malloc(soap,sizeof *js->UsedTotalCPUTime);
+ *js->UsedTotalCPUTime = src->cpuTime;
+ }
// UsedMainMemory (optional, xsd:unsignedLong) = N/A
// TODO: put resource usage once available