(props: &Props, stats_ttl: u64)
| 225 | } |
| 226 | |
| 227 | pub fn create_stats_metadata(props: &Props, stats_ttl: u64) -> Stats { |
| 228 | Stats { |
| 229 | browser: props.browser.to_string(), |
| 230 | browser_version: props.browser_version.to_string(), |
| 231 | os: props.os.to_string(), |
| 232 | arch: props.arch.to_string(), |
| 233 | lang: props.lang.to_string(), |
| 234 | selenium_version: props.selenium_version.to_string(), |
| 235 | stats_ttl: now_unix_timestamp() + stats_ttl, |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | pub fn write_metadata(metadata: &Metadata, log: &Logger, cache_path: Option<PathBuf>) { |
| 240 | if let Some(cache) = cache_path { |
no test coverage detected