Skip to content

Commit

Permalink
use seconds/secondsf typedef
Browse files Browse the repository at this point in the history
Victor Mataré committed Nov 25, 2015
1 parent a9c0ce1 commit b2023db
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers.h
Original file line number Diff line number Diff line change
@@ -42,8 +42,8 @@ class FanDriver {
protected:
string path_;
string initial_state_;
std::chrono::duration<unsigned int> watchdog_;
std::chrono::duration<float> depulse_;
seconds watchdog_;
secondsf depulse_;
std::chrono::system_clock::time_point last_watchdog_ping_;
FanDriver(const string &path, const unsigned int watchdog_timeout = 120);
public:
1 change: 1 addition & 0 deletions src/thinkfan.h
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ typedef std::ifstream ifstream;
typedef std::ofstream ofstream;
typedef std::fstream fstream;
typedef std::chrono::duration<unsigned int> seconds;
typedef std::chrono::duration<float> secondsf;

struct TemperatureState {
std::vector<int> temps;

0 comments on commit b2023db

Please sign in to comment.