agent_c 2.997 → 2.9979

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa0c1e6747ab6bb982f0b82ae5fe7c18441e6196e693f70094c590e4a1096b2f
4
- data.tar.gz: 75fc9a175b37a483d2bad9a69519e793cfa235fef71d59ae20a8c56e8bcc96ba
3
+ metadata.gz: 24e17363e73084fdbcf50fda975a5822e622a80c04b0822e4017dfe02f46240a
4
+ data.tar.gz: fe16a11e5ac880e18f5bc4c0317d2b8f7386542de99aec3217c06af8e4625186
5
5
  SHA512:
6
- metadata.gz: c98a44ddebeeebc1e39aef2b4965e3c6e01e7d205e0db6227016e4804c0982f52bcf17baf1c972c1dffe8470d1ca587dfa308eaa00ba968fc0af8cb5f429b4a7
7
- data.tar.gz: 9bf34db0557a760aed8d1a81b4a8bfbe13acf5baf91c6e8c605a23562e57be0a97e8ff5e5896de03bb4adfc3809cd9fea8f1555615bd99492222cf6a29849072
6
+ metadata.gz: 6937e2b0cdb4c9db5b5aca19e2093ed1810ff2ed058baec3f017ab7f32c567726020d98973c2ca277bbd4ea653325afd6934555113bd25cbec8ad03e79a66431
7
+ data.tar.gz: 2649e8a916012ff96ff200d2b749e376137dbee4e59cec89fbfc244d42226acc67c2b5812483dda14e3d815126ae14030eb488ef7b70db738a89d927a20cf1b3
data/lib/agent_c/batch.rb CHANGED
@@ -76,15 +76,13 @@ module AgentC
76
76
 
77
77
  # Cost and time per task
78
78
  if tasks.count > 0
79
- cost_per_task = (cost_data.run * worktree_count.to_f) / tasks.count.to_f
79
+ cost_per_task = cost_data.run / tasks.count.to_f
80
80
  out.puts "Cost per task: $#{'%.2f' % cost_per_task}"
81
81
 
82
82
  if tasks.any? && created_ats&.any? && updated_ats&.any?
83
83
  total_minutes = time_span_seconds / 60.0
84
- # Account for parallelism: if we have multiple worktrees,
85
- # tasks could run in parallel
86
- effective_minutes = worktree_count > 0 ? total_minutes / worktree_count : total_minutes
87
- minutes_per_task = effective_minutes / tasks.count
84
+
85
+ minutes_per_task = total_minutes * worktree_count / tasks.count
88
86
  out.puts "Minutes per task: #{'%.2f' % minutes_per_task}"
89
87
  end
90
88
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AgentC
4
- VERSION = "2.997"
4
+ VERSION = "2.9979"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agent_c
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.997'
4
+ version: '2.9979'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom