diff options
Diffstat (limited to 'src/bootchart')
-rw-r--r-- | src/bootchart/bootchart.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c index fc00b4e3f2..5683025b19 100644 --- a/src/bootchart/bootchart.c +++ b/src/bootchart/bootchart.c @@ -350,6 +350,14 @@ int main(int argc, char *argv[]) { log_uptime(); + if (graph_start < 0.0) { + fprintf(stderr, + "Failed to setup graph start time.\n\nThe system uptime " + "probably includes time that the system was suspended. " + "Use --rel to bypass this issue.\n"); + exit (EXIT_FAILURE); + } + has_procfs = access("/proc/vmstat", F_OK) == 0; LIST_HEAD_INIT(head); |