1 /*****************************************************************************
2 * RRDtool 1.2rc6 Copyright by Tobi Oetiker, 1997-2005
3 *****************************************************************************
5 *****************************************************************************
6 * Initial version by Russ Wright, @Home Network, 9/28/98
7 *****************************************************************************/
12 rrd_last(int argc, char **argv)
15 rrd_set_error("please specify an rrd");
19 return( rrd_last_r(argv[1]) );
24 rrd_last_r(const char *filename)
31 if(rrd_open(filename, &in_file, &rrd, RRD_READONLY)==-1){
34 lastup = rrd.live_head->last_up;