mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-19 03:24:10 +02:00
feat: sync ecc2 cost tracker metrics
This commit is contained in:
parent
cf9c68846c
commit
08f61f667d
8 changed files with 352 additions and 13 deletions
|
|
@ -113,6 +113,14 @@ impl Config {
|
|||
.join("ecc2.toml")
|
||||
}
|
||||
|
||||
pub fn cost_metrics_path(&self) -> PathBuf {
|
||||
self.db_path
|
||||
.parent()
|
||||
.unwrap_or_else(|| std::path::Path::new("."))
|
||||
.join("metrics")
|
||||
.join("costs.jsonl")
|
||||
}
|
||||
|
||||
pub fn load() -> Result<Self> {
|
||||
let config_path = Self::config_path();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue