summaryrefslogtreecommitdiffstats
path: root/pts-core/objects
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-12-31 10:28:44 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-12-31 10:28:44 -0500
commit37ec79012e0155da34eb8b3bbb1d9f195945c415 (patch)
tree13bbce5722b93da113113e1d331d22ebfecaced0 /pts-core/objects
parent78bcc0e749fc357625ca09cdebcfd288d874bf84 (diff)
downloadphoronix-test-suite-upstream-37ec79012e0155da34eb8b3bbb1d9f195945c415.tar.gz
phoronix-test-suite-upstream-37ec79012e0155da34eb8b3bbb1d9f195945c415.tar.xz
phoronix-test-suite-upstream-37ec79012e0155da34eb8b3bbb1d9f195945c415.zip
pts-core: Cache reading of hw_cpu_core_count() since that shouldn't
change while pts-core is running
Diffstat (limited to 'pts-core/objects')
-rw-r--r--pts-core/objects/pts_module.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/pts-core/objects/pts_module.php b/pts-core/objects/pts_module.php
index 084332e..c93aa4d 100644
--- a/pts-core/objects/pts_module.php
+++ b/pts-core/objects/pts_module.php
@@ -123,6 +123,12 @@ class pts_module
return $file;
}
+ public static function is_file($file)
+ {
+ $file = self::save_dir() . $file;
+
+ return is_file($file);
+ }
public static function remove_file($file)
{
$file = self::save_dir() . $file;