mirror of
				https://github.com/ohwgiles/laminar.git
				synced 2025-06-13 12:54:29 +00:00 
			
		
		
		
	fetch average runtime as double, not int
only makes a difference for very short jobs, but nice to have more accurate graphs
This commit is contained in:
		
							parent
							
								
									e442652e0a
								
							
						
					
					
						commit
						c274e321df
					
				| @ -427,7 +427,7 @@ std::string Laminar::getStatus(MonitorScope scope) { | ||||
|         j.startObject("timePerJob"); | ||||
|         db->stmt("SELECT name, AVG(completedAt-startedAt) av FROM builds WHERE completedAt > ? GROUP BY name ORDER BY av DESC LIMIT 8") | ||||
|                 .bind(time(nullptr) - 7 * 86400) | ||||
|                 .fetch<str, uint>([&](str job, uint time){ | ||||
|                 .fetch<str, double>([&](str job, double time){ | ||||
|             j.set(job.c_str(), time); | ||||
|         }); | ||||
|         j.EndObject(); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user