mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-08-22 02:24:47 -05:00
Only set the dump timestamp for the current day.
Past days are either ACHIEVED or UNACHIEVED depending on whether the time limit has been reached. The current day is in state COMPUTING.
This commit is contained in:
@@ -109,7 +109,7 @@ async function dumpDailySummariesForDevice(moon: MoonApi, directory: string, dev
|
||||
|
||||
for (const summary of summaries.items) {
|
||||
const filename = 'pctl-daily-' + summary.deviceId + '-' + summary.date +
|
||||
(summary.result === DailySummaryResult.ACHIEVED ? '' : '-' + timestamp) + '.json';
|
||||
(summary.result === DailySummaryResult.COMPUTING ? '-' + timestamp : '') + '.json';
|
||||
const file = path.join(directory, filename);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user