mfold prettification
authorVictor Grishchenko (mughal) <victor.grishchenko@gmail.com>
Thu, 18 Feb 2010 16:45:20 +0000 (17:45 +0100)
committerVictor Grishchenko (mughal) <victor.grishchenko@gmail.com>
Thu, 18 Feb 2010 16:45:20 +0000 (17:45 +0100)
mfold/loggraphs
mfold/logreport
mfold/report.css

index 579bef9..cd13b41 100755 (executable)
@@ -16,10 +16,12 @@ for from in `grep -v '^#' ../$SERVERS`; do
             continue
         fi
         GP="$from-$to.gnuplot"
-        echo "set term png large size 1024,768" > $GP
-        PNG="$from-$to.png"
+
+        echo "set term png large size 2048,768" > $GP
+        PNG="$from-$to.big.png"
         if [ -e $PNG ]; then rm $PNG; fi
-        echo "set out '$from-$to.png'" >> $GP
+        echo "set out '$PNG'" >> $GP
+
         echo "set y2tics" >> $GP
         echo "set y2label 'packets'" >> $GP
         echo "set ylabel 'microseconds'" >> $GP
@@ -62,6 +64,13 @@ for from in `grep -v '^#' ../$SERVERS`; do
                 >> $GP
         fi
         echo >> $GP
+
+        echo "set term png size 512,192" >> $GP
+        PNG="$from-$to.thumb.png"
+        if [ -e $PNG ]; then rm $PNG; fi
+        echo "set out '$PNG'" >> $GP
+        echo "replot" >> $GP
+
         ( cat $GP | gnuplot ) &
     done
 done
index 346e4b4..bb15497 100755 (executable)
@@ -1,5 +1,9 @@
 #!/bin/bash
 
+if [ ! $SERVERS ]; then
+    export SERVERS="servers.txt"
+fi
+
 cd harvest
 
 echo '<html><head>'
@@ -16,10 +20,9 @@ for from in `grep -v '#' ../$SERVERS`; do
     for to in `grep -v '#' ../$SERVERS`; do
         echo '<td>'
         cat $from-$to.html
-        PNG="$from-$to.png"
-        if [ -e $PNG ]; then 
-            echo "<a href='$PNG'>"
-            echo "<img class='thumb' src='$PNG'/>"
+        if [ -e "$from-$to.big.png" ]; then 
+            echo "<a href='$from-$to.big.png'>"
+            echo "<img class='thumb' src='$from-$to.thumb.png'/>"
             echo "</a>"
         fi
         echo '</td>'
index a1a64f7..5e13963 100644 (file)
@@ -26,7 +26,8 @@ tr.bytes {
 }
 
 img.thumb {
-    width: 150pt;
+    width: 160pt;
+    border-style: none;
 }
 
 table#main tr td {