diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2026-02-22 01:11:32 +0100 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2026-02-22 01:11:32 +0100 |
| commit | 86c89b528c3eac1a9faa26e15e7147c60edf3f44 (patch) | |
| tree | d4cafcf178bd6f0d66ffcd13380753875171f123 /src | |
| parent | 0c817cc0ae9a6e1b66d6e6ff45fa80bacabc58a9 (diff) | |
Correctly read the last status
I don't know what the code before was doing, but it was not right.
Diffstat (limited to 'src')
| -rw-r--r-- | src/html.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -417,12 +417,7 @@ char *html_render_client_detail_page(const struct Request *request, const struct int is_stale = 0; enum BackupStatus current_status = 0; if (backups_result->backups_len > 0) { - enum BackupStatus last_status = backups_result->backups[0].status; - if (last_status == STATUS_RUNNING) { - current_status = STATUS_RUNNING; - } else if (last_status == STATUS_INTERRUPTED) { - current_status = STATUS_INTERRUPTED; - } + current_status = backups_result->backups[0].status; } char *buf = NULL; |
