We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 486db86 commit 2fde969Copy full SHA for 2fde969
plugins/nf-co2footprint/src/main/nextflow/co2footprint/CO2FootprintFactory.groovy
@@ -160,8 +160,10 @@ class CO2FootprintFactory implements TraceObserverFactory {
160
cpu_usage = nc * 100
161
}
162
// TODO how to handle double, Double datatypes for ceiling?
163
- Double cpus_ceil = Math.ceil( cpu_usage / 100.0 as double )
164
- Double uc = cpu_usage / (100.0 * cpus_ceil) as Double
+ if ( cpu_usage == 0.0 ) {
+ warnings << "The reported CPU usage is 0.0 for at last one task!"
165
+ }
166
+ Double uc = cpu_usage / (100.0 * nc) as Double
167
168
/**
169
* Factors of memory power usage
0 commit comments