summaryrefslogtreecommitdiff
path: root/src/vmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vmon.c')
-rw-r--r--src/vmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmon.c b/src/vmon.c
index b8b6046..cc60c5c 100644
--- a/src/vmon.c
+++ b/src/vmon.c
@@ -752,7 +752,7 @@ static int vmon_snapshot(vmon_t *vmon)
strftime(start_str, sizeof(start_str), "%m.%d.%y-%T", start_time);
snprintf(path, sizeof(path), "%s/%s%s%s-%u.png",
vmon->output_dir,
- name,
+ name ? name : "",
name ? "-" : "",
start_str,
vmon->n_snapshots++);
© All Rights Reserved