(props: &Props, stats_ttl: u64)
| 243 | } |
| 244 | |
| 245 | pub fn create_stats_metadata(props: &Props, stats_ttl: u64) -> Stats { |
| 246 | Stats { |
| 247 | browser: props.browser.to_string(), |
| 248 | browser_version: props.browser_version.to_string(), |
| 249 | os: props.os.to_string(), |
| 250 | arch: props.arch.to_string(), |
| 251 | lang: props.lang.to_string(), |
| 252 | selenium_version: props.selenium_version.to_string(), |
| 253 | stats_ttl: now_unix_timestamp() + stats_ttl, |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | pub fn write_metadata(metadata: &Metadata, log: &Logger, cache_path: Option<PathBuf>) { |
| 258 | if let Some(cache) = cache_path { |
no test coverage detected