mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-30 15:32:43 +01:00 
			
		
		
		
	fix: remove workaround
This commit is contained in:
		| @@ -14,11 +14,7 @@ waybar::modules::Clock::Clock(const std::string& id, const Json::Value& config) | ||||
|     auto sub_m = | ||||
|         std::chrono::duration_cast<std::chrono::seconds>(time_s.time_since_epoch()).count() % | ||||
|         interval_.count(); | ||||
|     if (sub_m > 0) { | ||||
|       thread_.sleep_until(timeout - std::chrono::seconds(sub_m - 1)); | ||||
|     } else { | ||||
|       thread_.sleep_until(timeout - std::chrono::seconds(sub_m)); | ||||
|     } | ||||
|     thread_.sleep_until(timeout - std::chrono::seconds(sub_m)); | ||||
|   }; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alex
					Alex