X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbootchart%2Fbootchart.c;h=5683025b1970df3f16da846326f70c2713c68fb8;hp=fc00b4e3f2df888fa1fcf27ffeff770d29f0375d;hb=9a6f36c08f1ff93ff861e6371e081122a564c900;hpb=c358d728e7d6bf38a0176a9d5d013c6e972cddbf diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c index fc00b4e3f..5683025b1 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);