[longomatch] Use minutes as the basic unit



commit 37aacb593751906eedc1e9dee9b366f2367c29b7
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Dec 22 22:34:16 2011 +0100

    Use minutes as the basic unit

 LongoMatch.Addins.COE/ExcelExporter.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.Addins.COE/ExcelExporter.cs b/LongoMatch.Addins.COE/ExcelExporter.cs
index 14bdea0..81dd84e 100644
--- a/LongoMatch.Addins.COE/ExcelExporter.cs
+++ b/LongoMatch.Addins.COE/ExcelExporter.cs
@@ -77,7 +77,7 @@ public class EPPLUSExporter {
 	public EPPLUSExporter(Project project, string filename) {
 		this.project = project;
 		this.filename = filename;
-		duration = (int) (project.Description.File.Length / 1000); // 60);
+		duration = (int) (project.Description.File.Length / 1000 / 60);
 	}
 	
 	public void Export() {
@@ -175,8 +175,8 @@ public class EPPLUSExporter {
 			foreach (TimelineNode unit in gu) {
 				int start, stop;
 				
-				start = TIMELINE_START + unit.Start.Seconds; // 60;
-				stop = TIMELINE_START + unit.Stop.Seconds; // 60;
+				start = TIMELINE_START + unit.Start.Seconds / 60;
+				stop = TIMELINE_START + unit.Stop.Seconds / 60;
 				
 				ws.Cells[row, start].Value = stop - start;
 				cols = ws.Cells[row, start, row, stop];
@@ -242,7 +242,7 @@ public class EPPLUSExporter {
 				
 				/* Add the category's overal stats */
 				catRow = catsDict[ca];
-				time = TIMELINE_START + play.Start.Seconds; // /60;
+				time = TIMELINE_START + play.Start.Seconds / 60;
 				SetCellValue(ws, catRow, time, 1);
 				
 				/* Add the tags stats */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]