File: genhtml.patch

package info (click to toggle)
mapserver 6.4.1-5%2Bdeb8u3
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 12,960 kB
  • ctags: 19,791
  • sloc: ansic: 119,501; cpp: 54,044; python: 3,055; xml: 1,676; cs: 875; lex: 741; yacc: 707; java: 588; perl: 428; makefile: 382; sh: 373; tcl: 158; ruby: 55
file content (43 lines) | stat: -rw-r--r-- 1,259 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- genhtml_ori	2013-07-10 19:23:55.041055126 +0200
+++ genhtml	2013-07-10 19:31:39.041172541 +0200
@@ -2351,7 +2351,8 @@
 
 	($year, $month, $day) = (localtime())[5, 4, 3];
 
-	return sprintf("%d-%02d-%02d", $year+1900, $month+1, $day);
+	#return sprintf("%d-%02d-%02d", $year+1900, $month+1, $day);
+    return "XXXX-XX-XX";
 }
 
 
@@ -3807,9 +3808,10 @@
 			} else {
 				$class	= "branchCov";
 				$text	= " + ";
-				$title	= "Branch $br_num was taken $taken ".
-					  "time";
-				$title .= "s" if ($taken > 1);
+				#$title	= "Branch $br_num was taken $taken ".
+				#	  "time";
+				#$title .= "s" if ($taken > 1);
+                $title  = "Branch $br_num was taken X times";
 			}
 			$current .= "[" if ($open);
 			$current .= "<span class=\"$class\" title=\"$title\">";
@@ -3892,6 +3894,8 @@
 		$count_format	= format_count($count, $count_field_width);
 	}
 	else {
+        # force to 1 to avoid huge diffs between runs
+        $count = 1;
 		$result		= $count;
 		$source_format	= '<span class="lineCov">';
 		$count_format	= format_count($count, $count_field_width);
@@ -5127,6 +5131,7 @@
 			$countstyle = "coverFnLo";
 		} else {
 			$countstyle = "coverFnHi";
+            $count = "X";
 		}
 
 		write_html(*HTML_HANDLE, <<END_OF_HTML)