From 1c32b60e0a7ded84071128129814492bd0cb5e25 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 31 Aug 2021 15:10:35 +0200 Subject: [PATCH] rename hook dft to pmu_dft (closes #310) --- lib/hooks/CMakeLists.txt | 2 +- lib/hooks/{dft.cpp => pmu_dft.cpp} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename lib/hooks/{dft.cpp => pmu_dft.cpp} (98%) diff --git a/lib/hooks/CMakeLists.txt b/lib/hooks/CMakeLists.txt index a569a4513..81a119618 100644 --- a/lib/hooks/CMakeLists.txt +++ b/lib/hooks/CMakeLists.txt @@ -24,7 +24,6 @@ set(HOOK_SRC average.cpp cast.cpp decimate.cpp - dft.cpp dp.cpp drop.cpp dump.cpp @@ -35,6 +34,7 @@ set(HOOK_SRC limit_rate.cpp limit_value.cpp ma.cpp + pmu_dft.cpp pps_ts.cpp print.cpp restart.cpp diff --git a/lib/hooks/dft.cpp b/lib/hooks/pmu_dft.cpp similarity index 98% rename from lib/hooks/dft.cpp rename to lib/hooks/pmu_dft.cpp index 7fcfc7a97..1d44e3442 100644 --- a/lib/hooks/dft.cpp +++ b/lib/hooks/pmu_dft.cpp @@ -41,7 +41,7 @@ namespace villas { namespace node { -class DftHook : public MultiSignalHook { +class PmuDftHook : public MultiSignalHook { protected: enum class PaddingType { @@ -125,7 +125,7 @@ protected: double angleUnitFactor; public: - DftHook(struct vpath *p, struct vnode *n, int fl, int prio, bool en = true) : + PmuDftHook(struct vpath *p, struct vnode *n, int fl, int prio, bool en = true) : MultiSignalHook(p, n, fl, prio, en), windowType(WindowType::NONE), paddingType(PaddingType::ZERO), @@ -555,7 +555,7 @@ public: /* Register hook */ static char n[] = "dft"; static char d[] = "This hook calculates the dft on a window"; -static HookPlugin p; +static HookPlugin p; } /* namespace node */ } /* namespace villas */