Commit graph

15 commits

Author SHA1 Message Date
0010b6c1fc
fixed panic: runtime error: index out of range [0] with length 0
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/mrahbar/my-bloody-hetzner-sb-notifier/writer.(*TableWriter).Print(0xc00011be20, {{0x31e, 0x0}, {0x0, 0x0, 0x0}})
        /home/philipp/git/my-bloody-hetzner-sb-notifier/writer/table.go:25 +0x27a
main.run({0x731f00, 0xc0000ae008}, {0x0, 0x4041800000000000, 0x40, 0x100, 0x1800, 0x1800, 0x2, 0xf, ...}, ...)
        /home/philipp/git/my-bloody-hetzner-sb-notifier/main.go:251 +0x335
main.main()
        /home/philipp/git/my-bloody-hetzner-sb-notifier/main.go:138 +0x1a5

If no server was found we crashed, because we tried to print out the 0 element of an array.
2021-09-02 15:44:02 +02:00
Mahmoud Rahbar Azad
de5ccdf8e8
added gox param 2018-10-27 00:11:14 +02:00
Mahmoud Rahbar Azad
1a9ed2b37a
inlined strcase dependency
cleanup wrong  dependency in go.mod
2018-10-27 00:10:08 +02:00
Mahmoud Rahbar Azad
0a64b76687
updated Readme.md 2018-10-26 22:35:42 +02:00
Mahmoud Rahbar Azad
4a726291a2
added serve-http option 2018-10-26 22:31:39 +02:00
Mahmoud Rahbar Azad
c0539ade72
finalzed build 2018-10-26 12:34:01 +02:00
Mahmoud Rahbar Azad
2619e02988
replaced .travis.yml with multistage Docker build 2018-10-25 22:32:22 +02:00
Mahmoud Rahbar Azad
ddb4f49cf7
replaced Makefile with .travis.yml 2018-10-25 21:47:43 +02:00
Mahmoud Rahbar Azad
5d5c779b43
some clean up
added Makefile
2018-10-25 21:18:45 +02:00
Mahmoud Rahbar Azad
8f1463b2ef
removed obsolete flags 2018-10-25 20:47:29 +02:00
Mahmoud Rahbar Azad
d64d5e1ee5
Merge remote-tracking branch 'origin/master' 2018-10-25 20:28:36 +02:00
Mahmoud Rahbar Azad
0dfa241f0d
trying to switch instrumentation
Got 544 offers. Filtered offers: 3
           ID|     Ram|             HDD|                           CPU|    Price|  Score|  Reduce time|Specials
  SB64-935022|  128 GB|  2x 2 TB (4096)|  Intel Xeon E5-1650V2 (12518)|  64.00 €|  91.84|      48h 17m|ECC, Ent. HDD, iNIC
  SB72-927788|  128 GB|  2x 2 TB (4096)|  Intel Xeon E5-1650V3 (13335)|  72.00 €|  86.17|      21h 37m|ECC, Ent. HDD, iNIC
  SB73-910394|  128 GB|  3x 2 TB (6144)|  Intel Xeon E5-1650V2 (12518)|  73.00 €|  86.13|      03h 33m|ECC, Ent. HDD, iNIC
2018-10-25 20:24:07 +02:00
Mahmoud Rahbar Azad
af45c946ff
Initial commit 2018-10-25 20:17:30 +02:00
Mahmoud Rahbar Azad
796da12a07
added bare setup for notifier
Got 582 offers. Filtered offers: 3
           ID|     Ram|             HDD|                           CPU|    Price|   Score|  Reduce time|Specials
  SB57-931121|  128 GB|  2x 2 TB (4096)|  Intel Xeon E5-1650V2 (12518)|  57.00 €|  103.12|      40h 16m|ECC, Ent. HDD, iNIC
  SB69-927780|  128 GB|  2x 2 TB (4096)|  Intel Xeon E5-1650V3 (13335)|  69.00 €|   89.92|      36h 02m|ECC, Ent. HDD, iNIC
  SB74-910394|  128 GB|  3x 2 TB (6144)|  Intel Xeon E5-1650V2 (12518)|  74.00 €|   84.96|      23h 00m|ECC, Ent. HDD, iNIC
2018-10-23 13:32:15 +02:00
Mahmoud Rahbar Azad
66001f861f
Initial commit.
Example output:
Got 580 offers. Filtered offers: 3
           ID|     Ram|             HDD|                           CPU|    Price|   Score|  Reduce time|Specials
  SB57-931121|  128 GB|  2x 2 TB (4096)|  Intel Xeon E5-1650V2 (12518)|  57.00 €|  103.12|      53h 53m|ECC, Ent. HDD, iNIC
  SB69-927780|  128 GB|  2x 2 TB (4096)|  Intel Xeon E5-1650V3 (13335)|  69.00 €|   89.92|      49h 39m|ECC, Ent. HDD, iNIC
  SB76-910394|  128 GB|  3x 2 TB (6144)|  Intel Xeon E5-1650V2 (12518)|  76.00 €|   82.73|      01h 21m|ECC, Ent. HDD, iNIC
2018-10-22 23:55:29 +02:00