Skip to content

Commit

Permalink
chore: update statistics timestamp to milliseconds (#1760)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz authored Apr 8, 2024
1 parent 2de7801 commit abbc931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/bitcoin_statistic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.refresh
addresses_count = BitcoinAddress.where(created_at: start_time..end_time).count
# Count the number of newly generated transactions within half an hour before the current time point
transactions_count = BitcoinTransaction.where(created_at: start_time..end_time).count
create!(timestamp: end_time.utc.to_i, addresses_count:, transactions_count:)
create!(timestamp: end_time.utc.to_i * 1000, addresses_count:, transactions_count:)
end
end
end
Expand Down

0 comments on commit abbc931

Please sign in to comment.