show just last 100 rows with points
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 13 Apr 2011 09:13:13 +0000 (09:13 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 13 Apr 2011 09:13:13 +0000 (09:13 +0000)
templates/user.html.ep

index c75b914..c21a19b 100644 (file)
@@ -51,7 +51,7 @@
                        , function(code, response) {
                                console.debug( code, response );
                                self.ldap = response;
-                               self.gnuplot_sql = '/gnuplot?sql=select timestamp,snrtx,attntx,pwrtx,pwrrx,attnrx,snrrx from adsl where username = \'' + response[0].cn + '\'';
+                               self.gnuplot_sql = '/gnuplot?hide=1;with=points;sql=select timestamp,snrtx,attntx,pwrtx,pwrrx,attnrx,snrrx from adsl where username = \'' + response[0].cn + '\' order by timestamp desc limit 100';
                        }
                );
        };