(props: &Props, stats_ttl: u64)
| 213 | } |
| 214 | |
| 215 | pub fn create_stats_metadata(props: &Props, stats_ttl: u64) -> Stats { |
| 216 | Stats { |
| 217 | browser: props.browser.to_string(), |
| 218 | browser_version: props.browser_version.to_string(), |
| 219 | os: props.os.to_string(), |
| 220 | arch: props.arch.to_string(), |
| 221 | lang: props.lang.to_string(), |
| 222 | selenium_version: props.selenium_version.to_string(), |
| 223 | stats_ttl: now_unix_timestamp() + stats_ttl, |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | pub fn write_metadata(metadata: &Metadata, log: &Logger, cache_path: Option<PathBuf>) { |
| 228 | if let Some(cache) = cache_path { |
no test coverage detected