Skip to content

Commit

Permalink
add image and arch aggregation stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Nov 25, 2024
1 parent da42dca commit 1f5b0ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tracking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def stats
recent = $data.select{ |k,v| v[:time] >= (Date.today - 7) }
{
instances: recent.size,
versions: recent.group_by{ |k,v| v["app"] }.map{|k,v| [k, v.length]}.to_h
versions: recent.group_by{ |k,v| v["app"] }.map{|k,v| [k, v.length]}.to_h,
images: recent.group_by{ |k,v| v["image"] }.map{|k,v| [k, v.length]}.to_h,
architectures: recent.group_by{ |k,v| v["arch"] }.map{|k,v| [k, v.length]}.to_h
}
end
end
Expand Down

0 comments on commit 1f5b0ea

Please sign in to comment.