A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix a bug in an error message
[simgrid.git]
/
src
/
instr
/
instr_resource_utilization.cpp
diff --git
a/src/instr/instr_resource_utilization.cpp
b/src/instr/instr_resource_utilization.cpp
index 8ab07eb7c43188633c7aa9fbabb68d95f386cd69..1e52e6919ab9496a43ee968960a20f5db8dd7318 100644
(file)
--- a/
src/instr/instr_resource_utilization.cpp
+++ b/
src/instr/instr_resource_utilization.cpp
@@
-16,12
+16,12
@@
void resource_set_utilization(const char* type, const char* name, const char* re
{
// only trace resource utilization if resource is known by tracing mechanism
container_t container = Container::by_name_or_null(resource);
- if (
not container || not value
)
+ if (
container == nullptr || value == 0.0
)
return;
// trace uncategorized resource utilization
if (TRACE_uncategorized()){
- XBT_
DEBUG
("UNCAT %s [%f - %f] %s %s %f", type, now, now + delta, resource, name, value);
+ XBT_
VERB
("UNCAT %s [%f - %f] %s %s %f", type, now, now + delta, resource, name, value);
container->get_variable(name)->instr_event(now, delta, resource, value);
}