Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24840

Modified Files:
        sql_scenario.mx 
Log Message:
sysconf is not available on every system.
We have a macro for formatting a lng.


U sql_scenario.mx
Index: sql_scenario.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_scenario.mx,v
retrieving revision 1.302
retrieving revision 1.303
diff -u -d -r1.302 -r1.303
--- sql_scenario.mx     27 Mar 2008 14:06:48 -0000      1.302
+++ sql_scenario.mx     31 Mar 2008 16:12:40 -0000      1.303
@@ -1359,8 +1359,14 @@
 @c
        c->glb = oldglb;
        if (m->mode== m_profile) {
+#ifdef HAVE_TIMES
+#if defined(HAVE_SYSCONF) && defined(_SC_CLK_TCK)
                int tcks_per_sec = sysconf(_SC_CLK_TCK);
+#else
+               int tcks_per_sec = CLK_TCK;
+#endif
                struct tms t1;
+#endif
                lng T1 = GDKusec();
                lng tot = T1 - be->mvc->Tstart; 
 
@@ -1369,7 +1375,7 @@
                times(&t1);
                stream_printf(
                        c->fdout,
-                       "%%times real %lld, user %lld, system %lld, %d\n",
+                       "%%times real " LLFMT ", user " LLFMT ", system " LLFMT 
", %d\n",
                        tot, 
                        (lng) (t1.tms_utime - be->mvc->times.tms_utime),
                        (lng) (t1.tms_stime - be->mvc->times.tms_stime),


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to