mirror of
https://github.com/OkaeriPoland/okaeri-timings.git
synced 2026-01-18 03:28:20 +01:00
Rename report.took to stats.parseTime
This commit is contained in:
@@ -84,15 +84,15 @@ public class ParseController {
|
||||
throw new RuntimeException("Invalid report");
|
||||
}
|
||||
|
||||
Map<String, Object> report = Map.of(
|
||||
"took", (Duration.between(start, Instant.now()))
|
||||
Map<String, Object> stats = Map.of(
|
||||
"parseTime", (Duration.between(start, Instant.now()))
|
||||
);
|
||||
|
||||
return ResponseEntity.ok(Map.of(
|
||||
"meta", metadata,
|
||||
"header", header,
|
||||
"data", records,
|
||||
"report", report
|
||||
"stats", stats
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ export default {
|
||||
this.report = await this.axios.post('/v1/parse', formData, {headers: {'Content-Type': 'multipart/form-data'}})
|
||||
.then((response) => response.data)
|
||||
.catch((error) => console.log(error));
|
||||
console.log(`Report parsing took ${this.report.took}`);
|
||||
console.log(`Report parsing took ${this.report.stats.parseTime}`);
|
||||
}
|
||||
},
|
||||
setup: function () {
|
||||
|
||||
Reference in New Issue
Block a user