agent_c 2.99 → 2.997

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: 79f0d67a835d59d209e68ed409334ca100b65d1caa8b3c43a26676ad0f32c027
4
- data.tar.gz: fc55ea6795f45df4b3fe99c8418c5fef35a689661eacb9dac2b95fbaf91f7aaa
3
+ metadata.gz: fa0c1e6747ab6bb982f0b82ae5fe7c18441e6196e693f70094c590e4a1096b2f
4
+ data.tar.gz: 75fc9a175b37a483d2bad9a69519e793cfa235fef71d59ae20a8c56e8bcc96ba
5
5
  SHA512:
6
- metadata.gz: 9d9559be33ba70c96b52345dbc7aff15dad021bf31cc1186a8ad23c886d169e8dabefe2e8ba37a02974c725e44a1e2f0d401a2d98a3590a3701f834ed3ab3b38
7
- data.tar.gz: 5e8d33069f37e7b5e2ebd3432e85fe40f77f2f91c4b331cd32ebeb8d487c4ea69a894524c9190feab945089821aa5bc90ed51575fda37a4fd87e91ae249811e6
6
+ metadata.gz: c98a44ddebeeebc1e39aef2b4965e3c6e01e7d205e0db6227016e4804c0982f52bcf17baf1c972c1dffe8470d1ca587dfa308eaa00ba968fc0af8cb5f429b4a7
7
+ data.tar.gz: 9bf34db0557a760aed8d1a81b4a8bfbe13acf5baf91c6e8c605a23562e57be0a97e8ff5e5896de03bb4adfc3809cd9fea8f1555615bd99492222cf6a29849072
data/lib/agent_c/batch.rb CHANGED
@@ -43,10 +43,10 @@ module AgentC
43
43
  pending_count = tasks.count { |task| task.pending? }
44
44
  failed_count = tasks.count { |task| task.failed? }
45
45
 
46
+ out.puts "Total: #{tasks.count}"
46
47
  out.puts "Succeeded: #{succeeded_count}"
47
48
  out.puts "Pending: #{pending_count}"
48
49
  out.puts "Failed: #{failed_count}"
49
- out.puts "Tasks: #{tasks.count}"
50
50
 
51
51
  # Calculate time span
52
52
  if tasks.any?
@@ -76,7 +76,7 @@ module AgentC
76
76
 
77
77
  # Cost and time per task
78
78
  if tasks.count > 0
79
- cost_per_task = cost_data.run / tasks.count
79
+ cost_per_task = (cost_data.run * worktree_count.to_f) / 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?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AgentC
4
- VERSION = "2.99"
4
+ VERSION = "2.997"
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.99'
4
+ version: '2.997'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom