projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
force IFS=/ when calling path_expand, so that whitespace in paths doesn't cause worde...
[ardour.git]
/
libs
/
ardour
/
cycle_timer.cc
diff --git
a/libs/ardour/cycle_timer.cc
b/libs/ardour/cycle_timer.cc
index c48b7fb861e07fbd0d42e36913b3a3819ce62d29..7a6b1fcab263225fc011aa6335ad94be1c5e9bff 100644
(file)
--- a/
libs/ardour/cycle_timer.cc
+++ b/
libs/ardour/cycle_timer.cc
@@
-15,22
+15,23
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#include <cstdio>
*/
#include <cstdio>
-#include
<pbd/error.h>
-#include
<ardour/cycle_timer.h>
+#include
"pbd/error.h"
+#include
"ardour/cycle_timer.h"
#include "i18n.h"
#include "i18n.h"
+using namespace PBD;
+
float CycleTimer::cycles_per_usec = 0;
float
CycleTimer::get_mhz()
{
FILE *f;
float CycleTimer::cycles_per_usec = 0;
float
CycleTimer::get_mhz()
{
FILE *f;
-
+
if ((f = fopen("/proc/cpuinfo", "r")) == 0) {
fatal << _("CycleTimer::get_mhz(): can't open /proc/cpuinfo") << endmsg;
/*NOTREACHED*/
if ((f = fopen("/proc/cpuinfo", "r")) == 0) {
fatal << _("CycleTimer::get_mhz(): can't open /proc/cpuinfo") << endmsg;
/*NOTREACHED*/
@@
-67,7
+68,7
@@
CycleTimer::get_mhz()
}
}
}
}
- fatal << _("cannot locate cpu MHz in /proc/cpuinfo") << endmsg;
+ fatal << _("cannot locate cpu MHz in /proc/cpuinfo") << endmsg;
/*NOTREACHED*/
return 0.0f;
}
/*NOTREACHED*/
return 0.0f;
}